Mercurial > 510ConnectbotMonitor
diff src/com/five_ten_sg/connectbot/monitor/MonitorService.java @ 18:a94ca5a89fe8 stable-1.0.3
add cursor request command to the TE
author | Carl Byington <carl@five-ten-sg.com> |
---|---|
date | Thu, 03 Jul 2014 08:38:27 -0700 |
parents | a481d8fb5571 |
children | 943df7400741 |
line wrap: on
line diff
--- a/src/com/five_ten_sg/connectbot/monitor/MonitorService.java Tue Jul 01 19:10:51 2014 -0700 +++ b/src/com/five_ten_sg/connectbot/monitor/MonitorService.java Thu Jul 03 08:38:27 2014 -0700 @@ -44,6 +44,7 @@ public static final char MONITOR_CMD_DEPRESS = 8; public static final char MONITOR_CMD_SHOWURL = 9; public static final char MONITOR_CMD_SWITCHSESSION = 10; + public static final char MONITOR_CMD_CURSORREQUEST = 11; public static final int MONITORPORT = 6000; public static ConcurrentHashMap<Integer,CommunicationThread> clients = new ConcurrentHashMap<Integer,CommunicationThread>(); @@ -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); + } + } + }