bug-ncurses
[Top][All Lists]
Advanced

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

Re: Color


From: Thomas Dickey
Subject: Re: Color
Date: Wed, 24 Jan 2007 20:43:01 -0500
User-agent: Mutt/1.5.13 (2006-08-11)

On Mon, Jan 22, 2007 at 03:35:35PM -0700, Ricardo Cantu wrote:
> It seems that once data has been keyed into a field, the keyed in
> data can not have its color changed.. 
> In the following example, when you first enter a field I want the color
> to be SEL, then when you start typing I want the color to be HIGH, then after 
> you leave the field I want the color to be NORM. But the color of the keyed 
> in data stays HIGH even after doing a  set_field_back(current_field(my_form), 
> COLOR_PAIR (NORM)) on the field. Is there a way to change the color of 
> already keyed in data?

set_field_back() is only modifying the background attribute
(which would affect new characters written there).

Looks as if you would have to use the window associated with the field
directly...

-- 
Thomas E. Dickey <address@hidden>
http://invisible-island.net
ftp://invisible-island.net

Attachment: signature.asc
Description: Digital signature


reply via email to

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