summaryrefslogtreecommitdiffstats
path: root/lib/libncurses
diff options
context:
space:
mode:
authorache <ache@FreeBSD.org>1994-11-06 09:30:36 +0000
committerache <ache@FreeBSD.org>1994-11-06 09:30:36 +0000
commitd3de66188521ae1db2864908bbd1346462dc1164 (patch)
treebc447dbf503637900925a809532af0aa24efe465 /lib/libncurses
parent000e1f9f5858297588e708acdb87f4a5a4b94789 (diff)
downloadFreeBSD-src-d3de66188521ae1db2864908bbd1346462dc1164.zip
FreeBSD-src-d3de66188521ae1db2864908bbd1346462dc1164.tar.gz
Several fixes for 'back_color_erase' curses problem
Diffstat (limited to 'lib/libncurses')
-rw-r--r--lib/libncurses/lib_doupdate.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/libncurses/lib_doupdate.c b/lib/libncurses/lib_doupdate.c
index 4254177..76f69ab 100644
--- a/lib/libncurses/lib_doupdate.c
+++ b/lib/libncurses/lib_doupdate.c
@@ -176,7 +176,7 @@ int lastNonBlank;
T(("ClrUpdate(%x) called", scr));
if (back_color_erase) {
T(("back_color_erase, turning attributes off"));
- vidattr(A_NORMAL);
+ vidattr(curscr->_attrs = A_NORMAL);
}
ClearScreen();
@@ -306,7 +306,7 @@ int attrchanged = 0;
if(clr_eol) {
if (back_color_erase) {
T(("back_color_erase, turning attributes off"));
- vidattr(A_NORMAL);
+ vidattr(curscr->_attrs = A_NORMAL);
}
tputs(clr_eol, 1, _outc);
}
@@ -376,7 +376,7 @@ int attrchanged = 0;
GoTo(lineno, firstChar);
if (back_color_erase) {
T(("back_color_erase, turning attributes off"));
- vidattr(A_NORMAL);
+ vidattr(curscr->_attrs = A_NORMAL);
}
tputs(clr_eol, 1, _outc);
for( k = 0 ; k <= (columns-1) ; k++ )
@@ -401,7 +401,7 @@ int attrchanged = 0;
GoTo(lineno, firstChar);
if (back_color_erase) {
T(("back_color_erase, turning attributes off"));
- vidattr(A_NORMAL);
+ vidattr(curscr->_attrs = A_NORMAL);
}
tputs(clr_eol,1,_outc);
if(newLine[firstChar] != ' ' )
@@ -519,7 +519,7 @@ static void DelChar(int count)
if (back_color_erase) {
T(("back_color_erase, turning attributes off"));
- vidattr(A_NORMAL);
+ vidattr(curscr->_attrs = A_NORMAL);
}
if (parm_dch) {
tputs(tparm(parm_dch, count), 1, _outc);
OpenPOWER on IntegriCloud