bug-ncurses
[Top][All Lists]
Advanced

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

Re: about terminfo and xterm


From: chinlu chinawa
Subject: Re: about terminfo and xterm
Date: Tue, 21 Aug 2007 10:58:34 +0100 (BST)

> That only works for the data set via init_color(),
> and isn't going to
> help with ANSI colors...

What I meant is, while using terminfo I can just
change fg and bg colors and then output a `orig_pair',
it will work as expected (I say this cose I use to use
a black bg over a semi-bright gray as fg) so I
understand the structures involved are getting
original color pairs from the terminal whichever they
are, but there isn't a function for querying them.

That means there's no way of providing of color-aware
contents while either using terminfo (and probably)
tput or other command-line oriented application.

This is perfectly noticeable within `man'. With a gray
fg and white bg, various manual pages will present
patches completely white, whose text won't be readable
even if selecting it with the mouse.

By now the only workaround I could achieve is to query
the xterm, though it seems a bit clumsy. as far as I
know something like use_default_colors as in curses
isn't either something one can get with terminfo, nor
with tput and other command-line tools.

Thanks,




      ___________________________________________________________ 
Want ideas for reducing your carbon footprint? Visit Yahoo! For Good  
http://uk.promotions.yahoo.com/forgood/environment.html




reply via email to

[Prev in Thread] Current Thread [Next in Thread]