diff src/com/five_ten_sg/connectbot/service/TerminalMonitor.java @ 401:977815f990ec

Backed out changeset 2a416391ffc3
author Carl Byington <carl@five-ten-sg.com>
date Mon, 20 Oct 2014 19:14:10 -0700
parents e856ecf87b10
children 14aa0621aa7d
line wrap: on
line diff
--- a/src/com/five_ten_sg/connectbot/service/TerminalMonitor.java	Mon Oct 20 19:12:52 2014 -0700
+++ b/src/com/five_ten_sg/connectbot/service/TerminalMonitor.java	Mon Oct 20 19:14:10 2014 -0700
@@ -90,7 +90,9 @@
             try {
                 while (!is_closing) {
                     c = pending_commands.take();
-                    //Log.i(TAG, String.format("sending %d command", (int)c[1]));
+                    c[0] = (char)(c.length - 1);    // number of chars following
+                    c[1] = cmd;
+                    //Log.i(TAG, String.format("sending %d command", (int)cmd));
                     monitor_out.write(charsToBytes(c));
                 }
             }
@@ -348,7 +350,6 @@
 
 
     public void monitorWrite(char cmd, char[] c) {
-        c[0] = (char)(c.length - 1);    // number of chars following
         c[1] = cmd;
         pending_commands.put(c);
     };