bug-ncurses
[Top][All Lists]
Advanced

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

Re: flashing symptoms


From: Thomas Dickey
Subject: Re: flashing symptoms
Date: Sat, 11 Nov 2000 05:43:57 -0500

On Sat, Nov 11, 2000 at 08:49:42AM +0100, Frank Heckenbach wrote:
 
> I just noticed that the transcripts of my programs don't contain any
> clear sequences (apart from the initialization) because of the
> clearing with A_BOLD problem I posted about the other day. So this
> optimization wouldn't help me much and I probably won't do it... :-(

well, it was a thought (I don't suppose there is any other easy optimization)
 
> There's no hope that ncurses will ever support clearing with A_BOLD
> on terminals that allow it, is there?

essentially you're saying that blanks don't get video attributes when
there's already a color.  Aside from making it just-like-Solaris, I'm
not sure that it couldn't be done (perhaps we could add an experimental
feature).

.       Some years ago, I reported the problem that clearing ignores the
.       A_BOLD attribute which causes a wrong cursor color (e.g. brown
.       instead of yellow) when the cursor is over the spaces on a PC text
.       console (e.g. Linux).
.       
.       Thomas Dickey told me that this is because some terminal types can't
.       clear with bold, and Alexander Lukyanov suggested turning off bce
.       attribute in terminfo.
.       
.       Since I don't want to have to patch terminfo on each system I run my
.       program on to get the right cursor color, I now use the following
.       code. It's certainly a kludge, but it seems to work. Is there any
.       better way to do it?
.       
.         if (strncmp (termname (), "linux", 5) == 0)
.           back_color_erase = 0;

-- 
Thomas E. Dickey <address@hidden>
http://dickey.his.com
ftp://dickey.his.com



reply via email to

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