fix eraseline behavior.

git-svn-id: svn://qnap.local/TwoTerm/trunk@2019 5590a31f-7b70-45f8-8c82-aa3a8e5f4507
This commit is contained in:
Kelvin Sherlock 2011-02-05 02:21:08 +00:00
parent 4f239780ed
commit 93a6782a2b
2 changed files with 13 additions and 6 deletions

View File

@ -178,13 +178,20 @@ enum {
break;
case VTEOL:
// erase line
screen->eraseLine();
// erase line (EOL)
// erase all data from the current cursor position
// (including data in the cursor position)
// to end of the line.
screen->erase(Screen::EraseLineAfterCursor);
break;
case VTEOS:
// erase screen,
screen->eraseScreen();
// erase screen (EOS)
// erase all data on the crt screen from the current
// cursor position (including data in the cursor position)
// to line 20, character position 72.
//
screen->erase(Screen::EraseAfterCursor);
break;
default:

View File

@ -302,13 +302,13 @@ enum {
// erasing
case 'K':
// erase to end of line
screen->eraseLine();
screen->erase(Screen::EraseLineAfterCursor);
_state = StateText;
break;
case 'J':
// erase to end of screen.
screen->eraseScreen();
screen->erase(Screen::EraseAfterCursor);
_state = StateText;
break;