mirror of
https://github.com/ksherlock/TwoTerm.git
synced 2025-01-03 07:29:28 +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;
|
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:
|
||||||
|
@ -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;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user