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

Re: setting ttyS colors



On 2007-12-27 18:19 +0100, joseph lockhart wrote:

> ok, looking for a way to set the TTYS colors so that
> the stay that way (not reset by ls or other things
> like rebooting, basicly need the location of the
> config file)
>
> echo -e "\033[31m"
>
> and
>
> echo "^[[1;31;40m"
>
> both work but do not persist after ls and other such 
>
> anyway anyone got an idea (i am sure someone out there
> is probably doing this already)

On the Linux console, you can use "setterm -store".  For X terminals,
you'd have to resort to X Resources or something similar (depending on
the terminal emulator you use).

Read the setterm(1) manpage, setterm has many cool features. :-)

Cheers,
       Sven


Reply to: