comparison src/com/five_ten_sg/connectbot/service/TerminalMonitor.java @ 211:7e4352b53f24

unsigned short -1 is 65535
author Carl Byington <carl@five-ten-sg.com>
date Mon, 07 Jul 2014 10:19:04 -0700
parents af235340fcde
children 4ecd8a39afb3
comparison
equal deleted inserted replaced
210:af235340fcde 211:7e4352b53f24
399 399
400 public synchronized void setField(int l, int c, char[] data, int offset) { 400 public synchronized void setField(int l, int c, char[] data, int offset) {
401 Log.i(TAG, "setField()"); 401 Log.i(TAG, "setField()");
402 char[] da = new char[data.length - offset]; 402 char[] da = new char[data.length - offset];
403 System.arraycopy(data, offset, da, 0, data.length-offset); 403 System.arraycopy(data, offset, da, 0, data.length-offset);
404 if (l > 60000) l = -1;
405 if (c > 60000) c = -1;
404 buffer.setField(l, c, da); 406 buffer.setField(l, c, da);
405 } 407 }
406 408
407 public synchronized void showUrl(char [] data, int offset) { 409 public synchronized void showUrl(char [] data, int offset) {
408 Log.i(TAG, "setField()"); 410 Log.i(TAG, "setField()");