From 4f239780ed172a3a7bd37289b0eb1a44508f39cd Mon Sep 17 00:00:00 2001 From: Kelvin Sherlock Date: Sat, 5 Feb 2011 01:47:31 +0000 Subject: [PATCH] cursor type support for GNO/ME console. git-svn-id: svn://qnap.local/TwoTerm/trunk@2018 5590a31f-7b70-45f8-8c82-aa3a8e5f4507 --- Emulators/GNOConsole.h | 2 ++ Emulators/GNOConsole.mm | 7 +++++++ 2 files changed, 9 insertions(+) diff --git a/Emulators/GNOConsole.h b/Emulators/GNOConsole.h index 6d2bf74..618a762 100644 --- a/Emulators/GNOConsole.h +++ b/Emulators/GNOConsole.h @@ -23,6 +23,8 @@ iPoint _dca; int _vp[4]; + + int _cursorType; } diff --git a/Emulators/GNOConsole.mm b/Emulators/GNOConsole.mm index 6e8c5d5..7cd1120 100644 --- a/Emulators/GNOConsole.mm +++ b/Emulators/GNOConsole.mm @@ -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'):