From 02ebab5bf9f54850cfe0de08632029cc777443ac Mon Sep 17 00:00:00 2001 From: "Andrey A. Chernov" Date: Sun, 6 Nov 1994 09:30:36 +0000 Subject: Several fixes for 'back_color_erase' curses problem --- lib/libncurses/lib_doupdate.c | 10 +++++----- 1 file 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); -- cgit v1.2.3