In comp.os.linux.networking, Linonut wrote:
> * Bill Marcum peremptorily fired off this memo:
>
>> On 2008-06-12, xzen <(E-Mail Removed)> wrote:
>>>
>>>
>>> how can i write tty with color?
>>
>> Why do you ask this question in networking?
>> In scripts, use the tput command. In C programs, use ncurses.
>> man 5 terminfo
>
> Or just add something like these escape sequences to your text output:
And hope to heck that your terminal emulation understands them. Better to
use the escape sequences that your terminal supports, like the ones that
the terminfo database makes available through tput
--
Lew Pitcher
Master Codewright & JOAT-in-training | Registered Linux User #112576
http://pitcher.digitalfreehold.ca/ | GPG public key available by request
---------- Slackware - Because I know what I'm doing. ------