this post was submitted on 18 Jan 2025
53 points (96.5% liked)
Technology
61203 readers
4630 users here now
This is a most excellent place for technology news and articles.
Our Rules
- Follow the lemmy.world rules.
- Only tech related content.
- Be excellent to each other!
- Mod approved content bots can post up to 10 articles per day.
- Threads asking for personal tech support may be deleted.
- Politics threads may be removed.
- No memes allowed as posts, OK to post as comments.
- Only approved bots from the list below, to ask if your bot can be added please contact us.
- Check for duplicates before posting, duplicates may be removed
- Accounts 7 days and younger will have their posts automatically removed.
Approved Bots
founded 2 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
My bad, i meant getty, the initial terminal service.
Probably, as I imagine that if it can display a configurable prompt, it can send whatever escape sequences it wants. Like, I expect that one could set it to show the prompt with whatever colors one wants. But it won't govern what software does to the terminal subsequent to handing off control to that software.
My system uses
agetty
. From its man page:So if you insert the relevant escape sequences into
/etc/issue
, you can have the login prompt screen be whatever set of colors you want.I don't have
agetty
do that, but I do useemptty
ontty7
.emptty
is a console-based display manager -- that is, I log in on a console and then start Sway from that. On Debian,emptty
defaults to showing a color prompt (I mean, it's a light-on-dark prompt by default, but I'm sure that one could set it up to do whatever).EDIT:
/etc/emptty/motd