mirror of
https://github.com/ksherlock/TwoTerm.git
synced 2024-12-22 07:30:40 +00:00
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:
parent
a6c9be6290
commit
4f239780ed
@ -24,6 +24,8 @@
|
||||
|
||||
int _vp[4];
|
||||
|
||||
int _cursorType;
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
@ -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'):
|
||||
|
Loading…
Reference in New Issue
Block a user