# HG changeset patch # User Carl Byington # Date 1430506838 25200 # Node ID 4f1cc4f44c41b4f3e68b9e82659e82d73b6c2183 # Parent 2586a4f5c8c30d6dba7f642c85523036e63f76db add mechanism to allow getfield from other threads diff -r 2586a4f5c8c3 -r 4f1cc4f44c41 src/com/five_ten_sg/connectbot/monitor/MonitorService.java --- a/src/com/five_ten_sg/connectbot/monitor/MonitorService.java Fri May 01 11:52:31 2015 -0700 +++ b/src/com/five_ten_sg/connectbot/monitor/MonitorService.java Fri May 01 12:00:38 2015 -0700 @@ -380,7 +380,7 @@ abandonGetField(connection); buf = new char[plen-3]; System.arraycopy(packet, 3, buf, 0, plen-3); - teActivate(connection, packet[1], packet[2], buf); + teActivate(connection, initString, packet[1], packet[2], buf); break; case MONITOR_CMD_KEYSTATE: teKeyState(connection, (packet[1] == 1)); @@ -451,7 +451,7 @@ setCurrentConnection(-1); } - public void teActivate(int connection, int lines, int columns, char[] buf) { + public void teActivate(int connection, String fn, int lines, int columns, char[] buf) { Log.i(TAG, String.format("teActivate %d", connection)); printer(String.format("activate %d lines %d columns %d b.len %d", connection, lines, columns, buf.length)); boolean sameinit = false;