diff src/de/mud/terminal/vt320.java @ 53:e872762ec105 tn5250

start tn5250 integration
author Carl Byington <carl@five-ten-sg.com>
date Wed, 11 Jun 2014 13:37:02 -0700
parents 80dcebe51af2
children 556c387889b9
line wrap: on
line diff
--- a/src/de/mud/terminal/vt320.java	Wed Jun 11 12:18:18 2014 -0700
+++ b/src/de/mud/terminal/vt320.java	Wed Jun 11 13:37:02 2014 -0700
@@ -739,8 +739,9 @@
     public final static int KEY_NUMPAD8 = 39;
     public final static int KEY_NUMPAD9 = 40;
     public final static int KEY_DECIMAL = 41;
-    public final static int KEY_ADD = 42;
-    public final static int KEY_ESCAPE = 43;
+    public final static int KEY_ADD     = 42;
+    public final static int KEY_ESCAPE  = 43;
+    public final static int KEY_TAB     = 44;
 
     public final static int DELETE_IS_DEL = 0;
     public final static int DELETE_IS_BACKSPACE = 1;
@@ -1092,12 +1093,20 @@
 
             case KEY_CAPS_LOCK:
                 capslock = !capslock;
-                return;
+                break;
 
             case KEY_SHIFT:
             case KEY_CONTROL:
             case KEY_ALT:
-                return;
+                break;
+
+            case KEY_ESCAPE:
+                write(0x1b);
+                break;
+
+            case KEY_TAB:
+                write(0x09);
+                break;
 
             default:
                 break;