Make idlok works properly with back color erase.

This commit is contained in:
ache 1994-11-27 02:22:09 +00:00
parent bf517495c6
commit b1affeefa7
3 changed files with 16 additions and 4 deletions

View File

@ -23,6 +23,10 @@ int y, touched = 0;
temp = win->_line[win->_cury];
if (win->_idlok && (delete_line != NULL)) {
if (back_color_erase) {
T(("back_color_erase, turning attributes off"));
vidattr(curscr->_attrs = A_NORMAL);
}
putp(delete_line);
touched = 1;
}
@ -43,6 +47,6 @@ int y, touched = 0;
}
for (end = &(temp[win->_maxx]); temp <= end; )
*temp++ = ' ' | win->_attrs;
*temp++ = ' ';
return OK;
}

View File

@ -85,6 +85,10 @@ chtype blank = ' ';
if (win->_maxx == columns && win->_idlok == TRUE) {
if (back_color_erase) {
T(("back_color_erase, turning attributes off"));
vidattr(curscr->_attrs = A_NORMAL);
}
if (n > 0) {
mvcur(-1, -1, win->_cury, 0);
if (parm_insert_line) {

View File

@ -23,8 +23,12 @@ int y, touched = 0;
temp = win->_line[win->_regbottom];
if (win->_idlok && (insert_line != NULL)) {
putp(insert_line);
touched = 1;
if (back_color_erase) {
T(("back_color_erase, turning attributes off"));
vidattr(curscr->_attrs = A_NORMAL);
}
putp(insert_line);
touched = 1;
}
if (!touched) {
@ -44,6 +48,6 @@ int y, touched = 0;
win->_line[win->_cury] = temp;
for (end = &temp[win->_maxx]; temp <= end; temp++)
*temp = ' ' | win->_attrs;
*temp = ' ';
return OK;
}