# HG changeset patch # User Carl Byington # Date 1404401907 25200 # Node ID a94ca5a89fe8da6699e73a636eb60472d1cc778e # Parent cc4da730e429877655f0ae5b7a6a124d99633ad3 add cursor request command to the TE diff -r cc4da730e429 -r a94ca5a89fe8 AndroidManifest.xml --- a/AndroidManifest.xml Tue Jul 01 19:10:51 2014 -0700 +++ b/AndroidManifest.xml Thu Jul 03 08:38:27 2014 -0700 @@ -2,7 +2,7 @@ + android:versionName="1.0.3-1" > clients = new ConcurrentHashMap(); @@ -449,4 +450,12 @@ } } + public static void teCursorRequest(int connection) { + CommunicationThread cm = clients.get(connection); + if (cm != null) { + char [] arg2 = new char[2]; + cm.clientWrite(MONITOR_CMD_CURSORREQUEST, arg2); + } + } + } diff -r cc4da730e429 -r a94ca5a89fe8 xml/510connectbotmonitor.in --- a/xml/510connectbotmonitor.in Tue Jul 01 19:10:51 2014 -0700 +++ b/xml/510connectbotmonitor.in Thu Jul 03 08:38:27 2014 -0700 @@ -135,8 +135,9 @@ character codes from the screen buffer. The field covers N columns, where N = (message length - 4) / 2. When sent from the monitor to the emulator, this causes - the emulator to send the field codes to the host. This is - also used as the reply message from the emulator to the + the emulator to send the field codes to the host (for async + modes) or to set the specified field contents (for block modes). + This is also used as the reply message from the emulator to the monitor for a previous GETFIELD from the monitor. @@ -176,6 +177,14 @@ SWITCHSESSION = 10 (Monitor -> TE). There are no arguments. The TE should display this session. + + + CURSORREQUEST = 11 (Monitor -> TE). There are no arguments. The TE + should send a CURSORMOVE update to the monitor. Cursor movement caused + by SETFIELD or DEPRESS commands does not trigger CURSORMOVE updates + in block mode (tn5250) sessions. Those commands do trigger CURSORMOVE + updates in async mode (telnet, ssh) sessions. +