Re: How to print colored text to a linux terminal?
From: Thomas Dickey (dickey_at_saltmine.radix.net)
Date: Sat, 05 Jun 2004 00:09:20 -0000
Grant Edwards <email@example.com> wrote:
> On 2004-06-04, Thomas Dickey <firstname.lastname@example.org> wrote:
>> Grant Edwards <email@example.com> wrote:
>>> This seems to agree (mostly) with my terminals -- though bold
>>> is the only one of the last 5 that's implimented across the
>>> terminal types I tried.
>> xterm implements 4 of them (not dim).
> It's pretty obvious what blank and bold do, but I don't see any
> difference in the "alt char set" mode. I'm not really sure
> what "protect" is supposed to do.
I'm not 100% sure either
(in the context of curses that is - this is one of those features that
is probably explained only in the SVr4 curses source code).
But vt220's implement something that sounds like that,
which guards text against erasure. I have a screen
in vttest which demonstrates it.
>> screen claims it implements dim (which can be confusing at times)
> Weird. Apparently the Mandrake 10 terminfo entry for rxvt is a
> bit off, since it doesn't handle any of the 8. If I change
> TERM from "rxvt" to "xterm", then about half of them appear to
> work under rxvt/aterm.
Perhaps it's missing the sgr string - I seem to recall noticing some variant of
the rxvt terminfo (probably based on a termcap file) which lacked the sgr
I have a notion that rxvt users tend to use slang, which apparently doesn't do
anything with sgr - those users would not notice.
-- Thomas E. Dickey http://invisible-island.net ftp://invisible-island.net