Thu Dec 13 15:14:33 2001 Michael Jennings (mej)

An update to a previous patch from Paul Brannan <pbranna@clemson.edu>.


SVN revision: 5768
This commit is contained in:
Michael Jennings 2001-12-13 20:20:45 +00:00
parent 42bf9ce52b
commit 7701e6d1e1
2 changed files with 14 additions and 1 deletions

View File

@ -4431,3 +4431,7 @@ Tue Dec 4 16:38:15 2001 Michael Jennings (mej)
Updated e-mail address for namsh at his request.
----------------------------------------------------------------------
Thu Dec 13 15:14:33 2001 Michael Jennings (mej)
An update to a previous patch from Paul Brannan <pbranna@clemson.edu>.
----------------------------------------------------------------------

View File

@ -1531,7 +1531,11 @@ process_terminal_mode(int mode, int priv, unsigned int nargs, int arg[])
case 1047: /* Alternate screen & clear */
PrivCases(PrivMode_Screen);
scr_change_screen(state);
scr_erase_screen(0);
if (state) {
/* Only clear the screen when switching to the
secondary screen. Leave the primary intact. */
scr_erase_screen(2);
}
break;
case 1048: /* Save/restore cursor pos */
PrivCases(PrivMode_Screen);
@ -1541,6 +1545,11 @@ process_terminal_mode(int mode, int priv, unsigned int nargs, int arg[])
PrivCases(PrivMode_Screen);
scr_cursor(state ? SAVE : RESTORE);
scr_change_screen(state);
if (state) {
/* Only clear the screen when switching to the
secondary screen. Leave the primary intact. */
scr_erase_screen(2);
}
break;
}
break;