[Top][All Lists]

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

Re: init_color() problem

From: Simon Sasburg
Subject: Re: init_color() problem
Date: Wed, 15 Nov 2006 23:00:49 +0100

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?

reply via email to

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