[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: colors in text-mode



> I was wondering....how might I get the login prompt to use some colors? 
> nothing fancy...just the text in a color other than white.

in your home-dir modify .bashrc, try e.g.:

  export PS1='\e[0;5;36m\h:\e[0;42;30m\w>\e[1;40;35m'

and see what happens.

those esc-sequences should work:
\e[2J          - clear screen
\e[0H          - cursor home
\e[#;#;...;#m  - set color(s), with #= 0-normal, 1-bold, 5-blink, 7-reverse
                                       8-invisible, 30..37 foreground color
                                       40..47 background color

Best regards

J. Fornoff


Reply to: