Mercurial > 510ConnectbotMonitor
comparison 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 |
comparison
equal
deleted
inserted
replaced
17:cc4da730e429 | 18:a94ca5a89fe8 |
---|---|
42 public static final char MONITOR_CMD_GETFIELD = 6; | 42 public static final char MONITOR_CMD_GETFIELD = 6; |
43 public static final char MONITOR_CMD_SCREENWATCH = 7; | 43 public static final char MONITOR_CMD_SCREENWATCH = 7; |
44 public static final char MONITOR_CMD_DEPRESS = 8; | 44 public static final char MONITOR_CMD_DEPRESS = 8; |
45 public static final char MONITOR_CMD_SHOWURL = 9; | 45 public static final char MONITOR_CMD_SHOWURL = 9; |
46 public static final char MONITOR_CMD_SWITCHSESSION = 10; | 46 public static final char MONITOR_CMD_SWITCHSESSION = 10; |
47 public static final char MONITOR_CMD_CURSORREQUEST = 11; | |
47 | 48 |
48 public static final int MONITORPORT = 6000; | 49 public static final int MONITORPORT = 6000; |
49 public static ConcurrentHashMap<Integer,CommunicationThread> clients = new ConcurrentHashMap<Integer,CommunicationThread>(); | 50 public static ConcurrentHashMap<Integer,CommunicationThread> clients = new ConcurrentHashMap<Integer,CommunicationThread>(); |
50 public static int currentConnection = -1; | 51 public static int currentConnection = -1; |
51 | 52 |
447 char [] arg2 = new char[2]; | 448 char [] arg2 = new char[2]; |
448 cm.clientWrite(MONITOR_CMD_SWITCHSESSION, arg2); | 449 cm.clientWrite(MONITOR_CMD_SWITCHSESSION, arg2); |
449 } | 450 } |
450 } | 451 } |
451 | 452 |
453 public static void teCursorRequest(int connection) { | |
454 CommunicationThread cm = clients.get(connection); | |
455 if (cm != null) { | |
456 char [] arg2 = new char[2]; | |
457 cm.clientWrite(MONITOR_CMD_CURSORREQUEST, arg2); | |
458 } | |
459 } | |
460 | |
452 } | 461 } |