Mercurial > 510Connectbot
diff src/com/five_ten_sg/connectbot/transport/TN5250.java @ 342:175c7d68f3c4
merge ganymed into mainline
author | Carl Byington <carl@five-ten-sg.com> |
---|---|
date | Thu, 31 Jul 2014 16:33:38 -0700 |
parents | 071eccdff8ea |
children |
line wrap: on
line diff
--- a/src/com/five_ten_sg/connectbot/transport/TN5250.java Thu Jul 17 22:09:05 2014 -0700 +++ b/src/com/five_ten_sg/connectbot/transport/TN5250.java Thu Jul 31 16:33:38 2014 -0700 @@ -163,6 +163,7 @@ public void keyDepressed(int keyCode, char keyChar, int modifiers) { if (mnemonics.containsKey(keyCode)) { String s = mnemonics.get(keyCode); + if (s != "") screen52.sendKeys(s); } } @@ -177,17 +178,20 @@ @Override public void write(byte[] b) { screen52.sendKeys(new String(b)); + if (bridge.monitor != null) bridge.monitor.testMoved(); } @Override public void write(int b) { if (controls.containsKey(b)) keyPressed(controls.get(b), ' ', 0); else screen52.sendKeys(new String(new byte[] {(byte)b})); + if (bridge.monitor != null) bridge.monitor.testMoved(); } @Override public void keyPressed(int keyCode, char keyChar, int modifiers) { keyDepressed(keyCode, keyChar, modifiers); + if (bridge.monitor != null) bridge.monitor.testMoved(); } @@ -281,6 +285,7 @@ screen52.setBuffer(buffer); bridge.addFontSizeChangedListener(screen52); connected = handler.connect(host, homeDirectory, buffer); + if (connected) bridge.onConnected(); } @@ -435,8 +440,8 @@ if (nickname == null || nickname.length() == 0) { nickname = getDefaultNickname(host.getUsername(), host.getHostname(), host.getPort()); } + host.setNickname(nickname); - return host; }