comparison 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
comparison
equal deleted inserted replaced
52:0e3fc85d0586 53:e872762ec105
737 public final static int KEY_NUMPAD6 = 37; 737 public final static int KEY_NUMPAD6 = 37;
738 public final static int KEY_NUMPAD7 = 38; 738 public final static int KEY_NUMPAD7 = 38;
739 public final static int KEY_NUMPAD8 = 39; 739 public final static int KEY_NUMPAD8 = 39;
740 public final static int KEY_NUMPAD9 = 40; 740 public final static int KEY_NUMPAD9 = 40;
741 public final static int KEY_DECIMAL = 41; 741 public final static int KEY_DECIMAL = 41;
742 public final static int KEY_ADD = 42; 742 public final static int KEY_ADD = 42;
743 public final static int KEY_ESCAPE = 43; 743 public final static int KEY_ESCAPE = 43;
744 public final static int KEY_TAB = 44;
744 745
745 public final static int DELETE_IS_DEL = 0; 746 public final static int DELETE_IS_DEL = 0;
746 public final static int DELETE_IS_BACKSPACE = 1; 747 public final static int DELETE_IS_BACKSPACE = 1;
747 748
748 /* The graphics charsets 749 /* The graphics charsets
1090 1091
1091 break; 1092 break;
1092 1093
1093 case KEY_CAPS_LOCK: 1094 case KEY_CAPS_LOCK:
1094 capslock = !capslock; 1095 capslock = !capslock;
1095 return; 1096 break;
1096 1097
1097 case KEY_SHIFT: 1098 case KEY_SHIFT:
1098 case KEY_CONTROL: 1099 case KEY_CONTROL:
1099 case KEY_ALT: 1100 case KEY_ALT:
1100 return; 1101 break;
1102
1103 case KEY_ESCAPE:
1104 write(0x1b);
1105 break;
1106
1107 case KEY_TAB:
1108 write(0x09);
1109 break;
1101 1110
1102 default: 1111 default:
1103 break; 1112 break;
1104 } 1113 }
1105 } 1114 }