# HG changeset patch # User Carl Byington # Date 1404761761 25200 # Node ID d198328918fed8a90983f7fc4f9425db9b09c5ad # Parent 4ecd8a39afb3f8364709dc378a2387305d5c18b1 cursor movement reporting changes diff -r 4ecd8a39afb3 -r d198328918fe src/com/five_ten_sg/connectbot/transport/TN5250.java --- 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