mirror of
https://github.com/ksherlock/TwoTerm.git
synced 2024-11-04 17:04:48 +00:00
fix eraseline behavior.
git-svn-id: svn://qnap.local/TwoTerm/trunk@2019 5590a31f-7b70-45f8-8c82-aa3a8e5f4507
This commit is contained in:
parent
4f239780ed
commit
93a6782a2b
@ -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:
|
||||
|
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user