Mercurial > 510Connectbot
changeset 51:8c6de858bb73 tn5250
start tn5250 integration
author | Carl Byington <carl@five-ten-sg.com> |
---|---|
date | Wed, 11 Jun 2014 11:54:52 -0700 |
parents | 2cd3d8091e37 |
children | 0e3fc85d0586 |
files | src/com/five_ten_sg/connectbot/service/TerminalKeyListener.java src/com/five_ten_sg/connectbot/transport/TN5250.java |
diffstat | 2 files changed, 10 insertions(+), 10 deletions(-) [+] |
line wrap: on
line diff
--- a/src/com/five_ten_sg/connectbot/service/TerminalKeyListener.java Wed Jun 11 11:50:25 2014 -0700 +++ b/src/com/five_ten_sg/connectbot/service/TerminalKeyListener.java Wed Jun 11 11:54:52 2014 -0700 @@ -80,18 +80,18 @@ public final static int META_TRANSIENT = META_CTRL_ON | META_ALT_ON | META_SHIFT_ON; - private final TerminalManager manager; - private final TerminalBridge bridge; - private final vt320 buffer; - private String encoding; + protected final TerminalManager manager; + protected final TerminalBridge bridge; + protected final vt320 buffer; + protected String encoding; - private String keymode = null; + protected String keymode = null; protected boolean hardKeyboard = false; protected boolean hardKeyboardHidden; - private String customKeyboard = null; + protected String customKeyboard = null; - private int metaState = 0; - private int mDeadKey = 0; + protected int metaState = 0; + private int mDeadKey = 0; // TODO add support for the new API. private ClipboardManager clipboard = null; @@ -884,7 +884,7 @@ return Charset.forName(encoding); } - private void ctrlKeySpecial() { + protected void ctrlKeySpecial() { if (selectingForCopy) { if (selectionArea.isSelectingOrigin()) selectionArea.finishSelectingOrigin();
--- a/src/com/five_ten_sg/connectbot/transport/TN5250.java Wed Jun 11 11:50:25 2014 -0700 +++ b/src/com/five_ten_sg/connectbot/transport/TN5250.java Wed Jun 11 11:54:52 2014 -0700 @@ -556,7 +556,7 @@ Log.e(TAG, "Problem while trying to handle an onKey() event", e); try { - bridge.transport.flush(); + flush(); } catch (IOException ioe) { Log.d(TAG, "Our transport was closed, dispatching disconnect event");