[Top][All Lists]

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

NCurses cursor highlighting bug

From: Paul M Foster
Subject: NCurses cursor highlighting bug
Date: Sat, 13 Mar 2004 12:07:22 -0500
User-agent: Mutt/1.3.28i

To whom it may concern:

I have found what I think is a bug in the ncurses, version 5.2, possibly
5.3. I have attached source code to replicate this bug.

Problem: When using highlighted attributes (A_BOLD et al) with color,
cursor adherence to attributes set is erratic.

In the sample application, four "fields" are created as areas of bright
white foreground over cyan background. The application sets the
attribute to this color (which includes an A_BOLD modifier). The
application writes spaces or values in these fields, which works
correctly. Then the application visits each "field" in turn and asks for
a character. Since the attribute has not been changed or turned off,
each field should show a blinking cursor in bright white as the
application waits for a character from the user. In the first two
fields, this is what happens. However, in the third field, the cursor is
_not_ bright white, but white/grey. This is inexplicable, and extensive
testing does not indicate a clear reason for this.

The tested environment is Linux 2.4.22 kernel, Debian 3.0 "stable"

If you need further data or testing, please let me know.

Paul M. Foster

Attachment: formtest.c
Description: Text Data

reply via email to

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