[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Clearing with A_BOLD
From: |
Frank Heckenbach |
Subject: |
Clearing with A_BOLD |
Date: |
Wed, 8 Nov 2000 16:08:36 +0100 |
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;
Frank
--
Frank Heckenbach, address@hidden
http://fjf.gnu.de/
PGP and GPG keys: http://fjf.gnu.de/plan
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Clearing with A_BOLD,
Frank Heckenbach <=