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; break;
case VTEOL: case VTEOL:
// erase line // erase line (EOL)
screen->eraseLine(); // erase all data from the current cursor position
// (including data in the cursor position)
// to end of the line.
screen->erase(Screen::EraseLineAfterCursor);
break; break;
case VTEOS: case VTEOS:
// erase screen, // erase screen (EOS)
screen->eraseScreen(); // 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; break;
default: default:

View File

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