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 _cursorType;
}

View File

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