Got sidetracked and accidentally customized my tty login

  • @SteveTech
    link
    English
    61 month ago

    You can do colours as well!

    My Linux TTY with a coloured /etc/issue message

    • @[email protected]OP
      link
      fedilink
      3
      edit-2
      1 month 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
        link
        English
        1
        edit-2
        1 month 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.