bug-ncurses
[Top][All Lists]
Advanced

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

Re: wattron


From: Thomas Dickey
Subject: Re: wattron
Date: Sat, 25 Feb 2006 08:10:08 -0500 (EST)

On Thu, 23 Feb 2006, Bob Rossi wrote:

Hi,

I was wondering, is it OK to "or" attributes and give them to wattron at
the same time? is this guarenteed to work?

usually.  That's because the A_xxx and COLOR_PAIR(n) all fit into one
memory location.

But if you build ncurses configured for extended colors, (which none of the packagers have done - so far), you can define color pair values that do not fit into this mask. That would be with terminal descriptions such as xterm-88color or xterm-256color.

On the other hand, it's supposed to work for color pairs that
fit: the extended colors library copies the values to/from the
places they're used.

 wattron (win, A_BOLD|A_UNDERLINE|COLOR_PAIR(n));
or do I have to do:
 wattron (win, A_BOLD);
 wattron (win, A_UNDERLINE);
 wattron (win, COLOR_PAIR(n));

Thanks,
Bob Rossi


_______________________________________________
Bug-ncurses mailing list
address@hidden
http://lists.gnu.org/mailman/listinfo/bug-ncurses


--
Thomas E. Dickey
http://invisible-island.net
ftp://invisible-island.net




reply via email to

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