changeset 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 3e68cb17c0b6
files src/com/five_ten_sg/connectbot/transport/TN5250.java
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
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