143
submitted 2 months ago by ColdWater@lemmy.ca to c/unixporn@lemmy.ml

Got sidetracked and accidentally customized my tty login

you are viewing a single comment's thread
view the rest of the comments
[-] SteveTech@programming.dev 7 points 2 months ago

You can do colours as well!

My Linux TTY with a coloured /etc/issue message

[-] ColdWater@lemmy.ca 4 points 2 months ago* (last edited 2 months ago)

Oh nice, I'm only just getting started and still don't know what possible, funny how we use the same font XD

[-] SteveTech@programming.dev 1 points 2 months ago* (last edited 2 months ago)

Oh cool, I believe only 4bit colours are possible, you can use this table from Wikipedia and the escape sequence \e[<FG>m replacing<FG> with your chosen foreground colour. Also \e[0m to reset everything.

funny how we use the same font XD

Haha yeah! I noticed that too!

I think I just used regex look aheads and look behinds to insert the colours easily.

Edit: Oh you can change that actual TTY font to a bigger one, if the text is too small too.

this post was submitted on 28 Jul 2024
143 points (97.4% liked)

Unixporn

15302 readers
29 users here now

Unixporn

Submit screenshots of all your *NIX desktops, themes, and nifty configurations, or submit anything else that will make themers happy. Maybe a server running on an Amiga, or a Thinkpad signed by Bjarne Stroustrup? Show the world how pretty your computer can be!

Rules

  1. Post On-Topic
  2. No Defaults
  3. Busy Screenshots
  4. Use High-Quality Images
  5. Include a Details Comment
  6. No NSFW
  7. No Racism or use of racist terms

founded 5 years ago
MODERATORS