comparison 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
comparison
equal deleted inserted replaced
68:cc7e3588a0f3 69:294435151b0c
330 screenChanged(l, l, c, c); 330 screenChanged(l, l, c, c);
331 } 331 }
332 332
333 public synchronized void setField(int l, int c, char[] data, int offset) { 333 public synchronized void setField(int l, int c, char[] data, int offset) {
334 Log.i(TAG, "setField()"); 334 Log.i(TAG, "setField()");
335 byte[] d = charsToBytes(data); 335 char[] d = new char[data.length - offset];
336 byte[] b = new byte[d.length - offset]; 336 System.arraycopy(data, offset, d, 0, data.length - offset);
337 System.arraycopy(d, offset, b, 0, d.length - offset); 337 buffer.setField(l, c, d);
338 buffer.write(b);
339 } 338 }
340 339
341 public synchronized void getField(int l, int c, int len) { 340 public synchronized void getField(int l, int c, int len) {
342 Log.i(TAG, "getField()"); 341 Log.i(TAG, "getField()");
343 char[] arg2 = new char[4 + len]; 342 char[] arg2 = new char[4 + len];