diff src/com/five_ten_sg/connectbot/transport/AbsTransport.java @ 103:1a34365fab9b

merge
author Carl Byington <carl@five-ten-sg.com>
date Tue, 17 Jun 2014 22:01:53 -0700
parents 6802f1cd1add
children 77ac18bc1b2f
line wrap: on
line diff
--- a/src/com/five_ten_sg/connectbot/transport/AbsTransport.java	Mon Jun 16 18:02:30 2014 -0700
+++ b/src/com/five_ten_sg/connectbot/transport/AbsTransport.java	Tue Jun 17 22:01:53 2014 -0700
@@ -50,6 +50,17 @@
             Log.d(TAG, s);
         }
 
+        // monitor injecting a field
+        @Override
+        public void setField(int l, int c, char [] data) {
+            byte[] b = new byte[data.length];
+            int i;
+            for (i=0; i<b.length; i++) {
+                b[i] = (byte)(data[i] & 0x00ff);
+            }
+            write(b);
+        }
+
         // terminal key listener sending to the host
         @Override
         public void write(byte[] b) {