diff src/com/five_ten_sg/connectbot/service/TerminalBridge.java @ 58:79aaf30947e2 tn5250

start tn5250 integration
author Carl Byington <carl@five-ten-sg.com>
date Wed, 11 Jun 2014 15:31:22 -0700
parents a3fd10a8c0de
children 228273d69ca4
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();
             }