diff src/com/five_ten_sg/connectbot/transport/TN5250.java @ 213:d198328918fe

cursor movement reporting changes
author Carl Byington <carl@five-ten-sg.com>
date Mon, 07 Jul 2014 12:36:01 -0700
parents 4ecd8a39afb3
children 594101a0876a
line wrap: on
line diff
--- a/src/com/five_ten_sg/connectbot/transport/TN5250.java	Mon Jul 07 12:32:22 2014 -0700
+++ b/src/com/five_ten_sg/connectbot/transport/TN5250.java	Mon Jul 07 12:36:01 2014 -0700
@@ -177,18 +177,18 @@
         @Override
         public void write(byte[] b) {
             screen52.sendKeys(new String(b));
-            cursorMoved();
+            if (bridge.monitor != null) bridge.monitor.cursorMoved();
         }
         @Override
         public void write(int b) {
             if (controls.containsKey(b)) keyPressed(controls.get(b), ' ', 0);
             else                         screen52.sendKeys(new String(new byte[] {(byte)b}));
-            cursorMoved();
+            if (bridge.monitor != null) bridge.monitor.cursorMoved();
         }
         @Override
         public void keyPressed(int keyCode, char keyChar, int modifiers) {
             keyDepressed(keyCode, keyChar, modifiers);
-            cursorMoved();
+            if (bridge.monitor != null) bridge.monitor.cursorMoved();
         }
 
         // 5250 writing to the screen