# HG changeset patch # User Carl Byington # Date 1403567859 25200 # Node ID f6a1aabf384fd8fb8a9025adc3588423c183cc35 # Parent f12df02aa228f64fa1ac087d5bc1a89276f077f0 add copyright diff -r f12df02aa228 -r f6a1aabf384f res/values/strings.xml --- a/res/values/strings.xml Mon May 05 14:37:11 2014 -0700 +++ b/res/values/strings.xml Mon Jun 23 16:57:39 2014 -0700 @@ -3,4 +3,5 @@ 510 Connectbot Monitor Maintains socket connection between 510 Connectbot terminal emulator and the monitoring application. Settings + Copyright 510 Software Group. Released under the GPLv3 or later. Full source code at http://www.five-ten-sg.com/510ConnectbotMonitor/ diff -r f12df02aa228 -r f6a1aabf384f src/com/five_ten_sg/connectbot/monitor/MonitorActivity.java --- a/src/com/five_ten_sg/connectbot/monitor/MonitorActivity.java Mon May 05 14:37:11 2014 -0700 +++ b/src/com/five_ten_sg/connectbot/monitor/MonitorActivity.java Mon Jun 23 16:57:39 2014 -0700 @@ -36,13 +36,7 @@ @Override public void handleMessage (Message msg) { if (msg.what == MESSAGE_CODE_PRINT) { - String s = (String)msg.obj; - if (count < LINES) count++; - else start = (start+1) % LINES; - texts[(start+count-1) % LINES] = s + "\n"; - String c = ""; - for (int i=0; i - 2014-04-18 + 2014-06-22 Carl Byington @@ -58,9 +58,9 @@ Terminal Monitor - For every terminal session (local, telnet, ssh or other), the + For every terminal session (local, telnet, ssh or tn5250), the terminal emulator also makes a connection to a terminal monitor - process, which can see keystrokes and screen contents, and can + process, which can see cursor movement and screen contents, and can inject characters to send to the host. @@ -108,8 +108,10 @@ - HOSTDATA = 2 (TE -> Monitor). The argument is a single uint16 - value containing the 8 bit character that was sent to the host. + KEYSTATE = 2 (TE -> Monitor). The argument is a single uint16 + value, 1 for key down, 0 for key up. The TE tracks a single special + key for the monitor, and reports key up/down state when it changes. + The actual key is configurable. @@ -157,6 +159,17 @@ changes, the emulator will send a SCREENCHANGE message back to the monitor. + + + DEPRESS = 8 (Monitor -> TE). The argument is a single + uint16 value containing a Windows VK key code. See + http://msdn.microsoft.com/en-us/library/windows/desktop/dd375731 + for the values. The following values are implemented + in the emulator - vk_back vk_tab vk_return vk_escape + vk_prior vk_next vk_end vk_home vk_left vk_up vk_right + vk_down vk_insert vk_delete vk_f1 vk_f2 vk_f3 vk_f4 + vk_f5 vk_f6 vk_f7 vk_f8 vk_f9 vk_f10 vk_f11 vk_f12. +