Mercurial > 510Connectbot
changeset 58:79aaf30947e2 tn5250
start tn5250 integration
author | Carl Byington <carl@five-ten-sg.com> |
---|---|
date | Wed, 11 Jun 2014 15:31:22 -0700 |
parents | e0c68988fe2e |
children | 228273d69ca4 |
files | src/com/five_ten_sg/connectbot/service/TerminalBridge.java src/org/tn5250j/framework/tn5250/Screen5250.java |
diffstat | 2 files changed, 5 insertions(+), 10 deletions(-) [+] |
line wrap: on
line diff
--- a/src/com/five_ten_sg/connectbot/service/TerminalBridge.java Wed Jun 11 14:30:19 2014 -0700 +++ b/src/com/five_ten_sg/connectbot/service/TerminalBridge.java Wed Jun 11 15:31:22 2014 -0700 @@ -1137,19 +1137,14 @@ buffer.keyPressed(vt320.KEY_UP, ' ', 0); else if (result.equals("↓")) buffer.keyPressed(vt320.KEY_DOWN, ' ', 0); + else if (result.equals("T")) + buffer.keyPressed(vt320.KEY_TAB, ' ', 0); else if (result.equals("I")) buffer.keyPressed(vt320.KEY_INSERT, ' ', 0); else if (result.equals("D")) buffer.keyPressed(vt320.KEY_DELETE, ' ', 0); else if (result.equals("E")) - buffer.keyTyped(vt320.KEY_ENTER, ' ', 0); - else if (result.equals("T")) { - try { - transport.write(0x09); - } - catch (IOException e) { - Log.e(TAG, "Problem with the arrowsDialog", e); - } + buffer.keyPressed(vt320.KEY_ENTER, ' ', 0); } } @Override @@ -1291,8 +1286,7 @@ else if (result.equals("0")) key = vt320.KEY_F10; - if (key != 0) - buffer.keyPressed(key, ' ', 0); + if (key != 0) buffer.keyPressed(key, ' ', 0); dismiss(); }
--- a/src/org/tn5250j/framework/tn5250/Screen5250.java Wed Jun 11 14:30:19 2014 -0700 +++ b/src/org/tn5250j/framework/tn5250/Screen5250.java Wed Jun 11 15:31:22 2014 -0700 @@ -3806,6 +3806,7 @@ for (int r = startRow; r <= endRow; r++) { for (int c = startCol; c <= endCol; c++) { char ch = planes.getChar(getPos(r,c)); + int x = (int)ch; buffer.putChar(c, r, ch, 0); } }