Mercurial > 510Connectbot
comparison src/com/five_ten_sg/connectbot/service/TerminalMonitor.java @ 101:f0ec55006f31
finish setField()
author | Carl Byington <carl@five-ten-sg.com> |
---|---|
date | Tue, 17 Jun 2014 15:59:20 -0700 |
parents | 9204fe526e65 |
children | 77ac18bc1b2f |
comparison
equal
deleted
inserted
replaced
100:9204fe526e65 | 101:f0ec55006f31 |
---|---|
359 screenChanged(l, l, c, c); | 359 screenChanged(l, l, c, c); |
360 } | 360 } |
361 | 361 |
362 public synchronized void setField(int l, int c, char[] data, int offset) { | 362 public synchronized void setField(int l, int c, char[] data, int offset) { |
363 Log.i(TAG, "setField()"); | 363 Log.i(TAG, "setField()"); |
364 char[] da = new byte[data.length - offset]; | 364 char[] da = new char[data.length - offset]; |
365 int i; | 365 int i; |
366 for (i=0; i<da.length; i++) { | 366 for (i=0; i<da.length; i++) { |
367 da[i] = data[i+offset]; | 367 da[i] = data[i+offset]; |
368 } | 368 } |
369 buffer.setField(l, c, da); | 369 buffer.setField(l, c, da); |