diff src/com/five_ten_sg/connectbot/service/TerminalMonitor.java @ 69:294435151b0c tn5250

use 5250 encryption config entry
author Carl Byington <carl@five-ten-sg.com>
date Fri, 13 Jun 2014 19:06:01 -0700
parents 6b0f1ece1d91
children 01d939969b10
line wrap: on
line diff
--- a/src/com/five_ten_sg/connectbot/service/TerminalMonitor.java	Fri Jun 13 16:24:59 2014 -0700
+++ b/src/com/five_ten_sg/connectbot/service/TerminalMonitor.java	Fri Jun 13 19:06:01 2014 -0700
@@ -332,10 +332,9 @@
 
     public synchronized void setField(int l, int c, char[] data, int offset) {
         Log.i(TAG, "setField()");
-        byte[] d = charsToBytes(data);
-        byte[] b = new byte[d.length - offset];
-        System.arraycopy(d, offset, b, 0, d.length - offset);
-        buffer.write(b);
+        char[] d = new char[data.length - offset];
+        System.arraycopy(data, offset, d, 0, data.length - offset);
+        buffer.setField(l, c, d);
     }
 
     public synchronized void getField(int l, int c, int len) {