aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrey A. Chernov <ache@FreeBSD.org>1994-11-06 09:30:36 +0000
committerAndrey A. Chernov <ache@FreeBSD.org>1994-11-06 09:30:36 +0000
commit02ebab5bf9f54850cfe0de08632029cc777443ac (patch)
treebc447dbf503637900925a809532af0aa24efe465
parent65eaa00bfbb02d54083877783719a151fb66ecd1 (diff)
downloadsrc-02ebab5bf9f54850cfe0de08632029cc777443ac.tar.gz
src-02ebab5bf9f54850cfe0de08632029cc777443ac.zip
Several fixes for 'back_color_erase' curses problem
Notes
Notes: svn path=/head/; revision=4206
-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 4254177e424f..76f69ab39c9c 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);