[Top][All Lists]

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

Re: init_color() problem

From: Thomas Dickey
Subject: Re: init_color() problem
Date: Wed, 15 Nov 2006 17:22:54 -0500 (EST)

On Wed, 15 Nov 2006, Simon Sasburg wrote:

On 11/15/06, Thomas Dickey <address@hidden> wrote:
You could for instance design an alternate terminfo entry which tells
ncurses that the terminal does not support BOLD+color, and alter the
setaf/setab strings to use the BOLD attribute as part of their

Ok, at the moment I have only a vague idea about what terminfo is and
how it works, but if i understand correctly what you suggest is this:
-modify the terminfo so ncurses thinks the terminal supports 16
colors, but not bold, this will then cause COLORS to be 16 and make
init_color() work for all 16 colors
-modify setaf/setab strings to change the way ncurses will change the
current color, namely, also setting the bold attr for colors >8

Is that about right? Or did i misunderstand?

yes, that's right. (Also see the ncv - no_color_video - flag, which is used by ncurses to detect if it should not try to combine BOLD+color).

Thomas E. Dickey

reply via email to

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