changeset 508:d6c107dedb04

allow multiple screen watch areas
author Carl Byington <carl@five-ten-sg.com>
date Thu, 17 Nov 2022 10:56:48 -0700
parents f7498bd7621b
children 2eb4fa13b9ef
files app/src/main/java/com/five_ten_sg/connectbot/service/TerminalMonitor.java
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/app/src/main/java/com/five_ten_sg/connectbot/service/TerminalMonitor.java	Wed Nov 16 12:07:04 2022 -0700
+++ b/app/src/main/java/com/five_ten_sg/connectbot/service/TerminalMonitor.java	Thu Nov 17 10:56:48 2022 -0700
@@ -157,7 +157,7 @@
                     char[] len = forceRead(1);
                     char[] packet = forceRead(len[0]);
                     char cmd = packet[0];
-                    Log.i(TAG, String.format("received %s", commands[cmd]));
+                    Log.i(TAG, String.format("received %s length %d", commands[cmd], packet.length));
 
                     switch (cmd) {
                         case MONITOR_CMD_SETFIELD:
@@ -175,6 +175,7 @@
                         case MONITOR_CMD_SCREENWATCH:
                             if (packet.length >= 4) {
                                 int n = (packet.length - 1) / 3;
+                                Log.i(TAG, String.format("screen watch %d elements", n));
                                 watches = new Watch[n];
                                 for (int i=0; i<n; i++) {
                                     int j = 1 + i*3;