Subject: Re: colored output on terminal
To: None <netbsd-help@netbsd.org>
From: Beaker \(aka Jeff W\) <beaker@myrealbox.com>
List: netbsd-help
Date: 11/16/2002 22:46:34
> a CURSES(3) testprogram i wrote told me that the terminal cannot change
> colors and doesn't have colors.
>
> i need to write a small programm that gives colored output.
>
> i thought that the NetBSD-terminal is VT220-compatible. and VT200 DOES
> HAVE colors.
>
> so what to do ?!?
Can't you just use ASCII escapes to generate colored output on console?
I use such a technique for my shell prompt:
# set prompt = "ESC[1mESC[31;40m${user}@ESC[31;40m${mch:q}: {\!} ESC[0m"
Note that the "ESC"s are generated in vi by inserting a literal ^[ by
preceding it with ^v
HTH,
Beaker