[comp.unix.wizards] Curses & Color

davej@uicsrd.csrd.uiuc.edu (06/14/88)

				
   I need to do colors with curses. Color is done by writing an escape
sequence to the display adapter which puts the display in the mode
for a particular color used for subsequently written chars.

   The problem is the way curses trys to efficiently update the display.
It seems that 'cursrc' contains the current image of the actual display.
Assume the window I'm using is 'stdsrc'. If I write chars to 'stdscr' that
are intended to be in a new color, on a 'refresh' a char is actually 
written to the display only if its char. value is different from that
in 'curscr'. So old chars may remain on the display in the incorrect
color.

   I thought 'touchwin' was the answer to my problems, but all this
call seems to do is set some parameters so that the entire 'strdscr'
is compared against 'curscr' for differences; 'curscr' still acts as
a filter.

   I'm sure somebody must have done colors with curses and has gotten
around this problem.

   Any advice is greatly appreciated.

larry@focsys.UUCP (Larry Williamson) (06/20/88)

In article <43200020@uicsrd.csrd.uiuc.edu> davej@uicsrd.csrd.uiuc.edu writes:
>
>   I need to do colors with curses. ...

I was looking for this same feature about a month ago. It turns out
that system V Release 3 is supposed to support colour. I don't know
first hand if this is true as I don't have a copy of Release 3 yet.

larry


-- 
Larry Williamson                      Focus Automation Systems
UUCP: watmath!focsys!larry    608 Weber St. N, Waterloo, Ontario N2V 1K4
                                          +1 519 746 4918

mhm@cbterra.ATT.COM (Mike H. Moran) (06/23/88)

Color may be supported, but not correctly in the background.   The
release notes for SVR3.1 say the attributes operating on the background 
are unreliable.  A fact I have found to be quite true on the 6386.

Mike Moran
Contracted to AT&T-BL, Columbus, Oh	UUCP: att!cbosgd!mhm

robert@pvab.UUCP (Robert Claeson) (06/28/88)

In article <188@focsys.UUCP>, larry@focsys.UUCP (Larry Williamson) writes:

> It turns out
> that system V Release 3 is supposed to support colour.

System V Release 3.2, that is, which was just recently released.