diff src/com/five_ten_sg/connectbot/service/TerminalMonitor.java @ 205:f86f1e37b504

add cursor request command to the TE
author Carl Byington <carl@five-ten-sg.com>
date Thu, 03 Jul 2014 08:46:25 -0700
parents 6e07ea418b90
children af235340fcde
line wrap: on
line diff
--- a/src/com/five_ten_sg/connectbot/service/TerminalMonitor.java	Wed Jul 02 22:20:20 2014 -0700
+++ b/src/com/five_ten_sg/connectbot/service/TerminalMonitor.java	Thu Jul 03 08:46:25 2014 -0700
@@ -39,6 +39,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;
 
     private static final int    MONITORPORT       = 6000;
     private static final String LOCALHOST         = "127.0.0.1";
@@ -142,6 +143,12 @@
 
                             break;
 
+                        case MONITOR_CMD_CURSORREQUEST:
+                            if (packet.length == 1)
+                                cursorRequest();
+
+                            break;
+
                         default:
                             break;
                     }
@@ -447,4 +454,10 @@
         parent.startActivity(intent);
     }
 
+
+    public synchronized void cursorRequest() {
+        Log.i(TAG, "cursorRequest()");
+        testChanged();
+    }
+
 }