Subject: Re: colored output on terminal
To: =?iso-8859-1?Q?Florian_St=F6hr?= <florian.stoehr@login-solutions.de>
From: Ryan Thompson <ryan@sasknow.com>
List: netbsd-help
Date: 11/17/2002 01:07:22
Florian St=F6hr wrote to netbsd-help@netbsd.org:

> hi,
>
> a CURSES(3) testprogram i wrote told me that the terminal cannot
> change colors and doesn't have colors.

You mean can_change_colors() returns false? What is your terminal type
set to? (echo $TERM)

> i need to write a small programm that gives colored output.

curses(3) will indeed to the trick, assuming your program is in C.

> i thought that the NetBSD-terminal is VT220-compatible. and VT200
> DOES HAVE colors.

Yes, and yes.

One important point to note that many miss is, the "NetBSD-terminal"
is the (by default) 80x25 text-only console. If using xterm, or
logging in remotely, you are *not* using the local NetBSD console.
What you will see in that case depends on the capabilities (and
terminal type) of the X or remote terminal, as the case may be.

> so what to do ?!?

setenv TERM vt220

would be a good start. Also

man 5 termcap

Hope this helps,
- Ryan

--=20
  Ryan Thompson <ryan@sasknow.com>

  SaskNow Technologies - http://www.sasknow.com
  901 1st Avenue North - Saskatoon, SK - S7K 1Y4

        Tel: 306-664-3600   Fax: 306-244-7037   Saskatoon
  Toll-Free: 877-727-5669     (877-SASKNOW)     North America