cursor type support for GNO/ME console.

git-svn-id: svn://qnap.local/TwoTerm/trunk@2018 5590a31f-7b70-45f8-8c82-aa3a8e5f4507
This commit is contained in:
Kelvin Sherlock 2011-02-05 01:47:31 +00:00
parent a6c9be6290
commit 4f239780ed
2 changed files with 9 additions and 0 deletions

View File

@ -24,6 +24,8 @@
int _vp[4]; int _vp[4];
int _cursorType;
} }

View File

@ -164,6 +164,7 @@ enum {
_textPort.leftMargin = TextPort::MarginWrap; _textPort.leftMargin = TextPort::MarginWrap;
_textPort.rightMargin = TextPort::MarginWrap; _textPort.rightMargin = TextPort::MarginWrap;
_cursorType = Screen::CursorTypeUnderscore;
// set flags to plain text. // set flags to plain text.
} }
@ -205,8 +206,12 @@ enum {
{ {
case CTRL('A'): case CTRL('A'):
// set cursor to flashing block. // set cursor to flashing block.
_cursorType = Screen::CursorTypeBlock;
screen->setCursorType((Screen::CursorType)_cursorType);
break; break;
case CTRL('B'): case CTRL('B'):
_cursorType = Screen::CursorTypeUnderscore;
screen->setCursorType((Screen::CursorType)_cursorType);
// set cursor to flashing underscore. // set cursor to flashing underscore.
break; break;
@ -217,10 +222,12 @@ enum {
case CTRL('E'): case CTRL('E'):
// cursor on // cursor on
screen->setCursorType((Screen::CursorType)_cursorType);
break; break;
case CTRL('F'): case CTRL('F'):
//cursor off //cursor off
screen->setCursorType(Screen::CursorTypeNone);
break; break;
case CTRL('G'): case CTRL('G'):