Changing colours in the CLI [solved]

All other questions
Pete44
Posts: 6
Joined: 17 Nov 2011, 22:09

Changing colours in the CLI [solved]

Postby Pete44 » 17 Nov 2011, 22:13

Hello
Can anyone here please tell me how to change the text colour in the CLI?
I have a autorun script which I need to display text in red with black background.
Tried tput which does not work with 'tput setf 1' but gives no errors.
Also tried 'setterm -foreground red' and also did nothing.

Thank you.
Pete

Pete44
Posts: 6
Joined: 17 Nov 2011, 22:09

[SOLVED] Changing colours in the CLI

Postby Pete44 » 17 Nov 2011, 22:40

Never mind found a way:

echo -en"\\033[31m\\033[8]" > /dev/tty1


Return to “Other”

Who is online

Users browsing this forum: No registered users and 1 guest