comparison src/org/tn5250j/TN5250jConstants.java @ 112:77ac18bc1b2f

cleanup java formatting
author Carl Byington <carl@five-ten-sg.com>
date Wed, 18 Jun 2014 13:03:01 -0700
parents ae3092cd9cbf
children 29076621bab0
comparison
equal deleted inserted replaced
111:6a0ad4d384ea 112:77ac18bc1b2f
22 package org.tn5250j; 22 package org.tn5250j;
23 import java.util.HashMap; 23 import java.util.HashMap;
24 24
25 public class TN5250jConstants { 25 public class TN5250jConstants {
26 26
27 // Version information 27 // Version information
28 public static final String tn5250jRelease = "0"; 28 public static final String tn5250jRelease = "0";
29 public static final String tn5250jVersion = ".7"; 29 public static final String tn5250jVersion = ".7";
30 public static final String tn5250jSubVer= ".3"; 30 public static final String tn5250jSubVer = ".3";
31 31
32 public static final String VERSION_INFO = tn5250jRelease + tn5250jVersion + tn5250jSubVer; 32 public static final String VERSION_INFO = tn5250jRelease + tn5250jVersion + tn5250jSubVer;
33 33
34 // STATE 34 // STATE
35 static final int STATE_DISCONNECTED = 0; 35 static final int STATE_DISCONNECTED = 0;
36 static final int STATE_CONNECTED = 1; 36 static final int STATE_CONNECTED = 1;
37 static final int STATE_REMOVE = 2; 37 static final int STATE_REMOVE = 2;
38 38
39 // SESSION Level key value pairs 39 // SESSION Level key value pairs
40 public static final String SESSION_HOST = "SESSION_HOST"; 40 public static final String SESSION_HOST = "SESSION_HOST";
41 public static final String SESSION_HOST_PORT ="SESSION_HOST_PORT"; 41 public static final String SESSION_HOST_PORT = "SESSION_HOST_PORT";
42 public static final String SESSION_CONFIG_RESOURCE = "SESSION_CONFIG_RESOURCE"; 42 public static final String SESSION_CONFIG_RESOURCE = "SESSION_CONFIG_RESOURCE";
43 public static final String SESSION_TYPE = "SESSION_HOST_TYPE"; 43 public static final String SESSION_TYPE = "SESSION_HOST_TYPE";
44 public static final String SESSION_TN_ENHANCED = "SESSION_TN_ENHANCED"; 44 public static final String SESSION_TN_ENHANCED = "SESSION_TN_ENHANCED";
45 public static final String SESSION_SCREEN_SIZE = "SESSION_SCREEN_SIZE"; 45 public static final String SESSION_SCREEN_SIZE = "SESSION_SCREEN_SIZE";
46 public static final String SESSION_CODE_PAGE = "SESSION_CODE_PAGE"; 46 public static final String SESSION_CODE_PAGE = "SESSION_CODE_PAGE";
47 public static final String SESSION_PROXY_HOST = "SESSION_PROXY_HOST"; 47 public static final String SESSION_PROXY_HOST = "SESSION_PROXY_HOST";
48 public static final String SESSION_PROXY_PORT = "SESSION_PROXY_PORT"; 48 public static final String SESSION_PROXY_PORT = "SESSION_PROXY_PORT";
49 public static final String SESSION_USE_GUI = "SESSION_USE_GUI"; 49 public static final String SESSION_USE_GUI = "SESSION_USE_GUI";
50 public static final String SESSION_DEVICE_NAME = "SESSION_DEVICE_NAME"; 50 public static final String SESSION_DEVICE_NAME = "SESSION_DEVICE_NAME";
51 public static final String SESSION_NAMES_REFS = "SESSION_NAMES_REFS"; 51 public static final String SESSION_NAMES_REFS = "SESSION_NAMES_REFS";
52 public static final String SESSION_LOCALE = "SESSION_LOCALE"; 52 public static final String SESSION_LOCALE = "SESSION_LOCALE";
53 public static final String SESSION_CONFIG_FILE = "SESSION_CONFIG_FILE"; 53 public static final String SESSION_CONFIG_FILE = "SESSION_CONFIG_FILE";
54 public static final String SESSION_TERM_NAME_SYSTEM = "SESSION_TERM_NAME_SYSTEM"; 54 public static final String SESSION_TERM_NAME_SYSTEM = "SESSION_TERM_NAME_SYSTEM";
55 public static final String SESSION_TERM_NAME = "SESSION_TERM_NAME"; 55 public static final String SESSION_TERM_NAME = "SESSION_TERM_NAME";
56 public static final String SESSION_IS_APPLET = "SESSION_IS_APPLET"; 56 public static final String SESSION_IS_APPLET = "SESSION_IS_APPLET";
57 public static final String SESSION_HEART_BEAT = "SESSION_KEEP_ALIVE_ENABLED"; 57 public static final String SESSION_HEART_BEAT = "SESSION_KEEP_ALIVE_ENABLED";
58 58
59 // public static final String GUI_MDI_TYPE = "GUI_MDI_TYPE"; 59 // public static final String GUI_MDI_TYPE = "GUI_MDI_TYPE";
60 public static final String GUI_FRAME_WIDTH = "GUI_FRAME_WIDTH"; 60 public static final String GUI_FRAME_WIDTH = "GUI_FRAME_WIDTH";
61 public static final String GUI_FRAME_HEIGHT = "GUI_FRAME_HEIGHT"; 61 public static final String GUI_FRAME_HEIGHT = "GUI_FRAME_HEIGHT";
62 public static final String GUI_NO_TAB = "GUI_NO_TAB"; 62 public static final String GUI_NO_TAB = "GUI_NO_TAB";
63 public static final String NO_CHECK_RUNNING = "NO_CHECK_RUNNING"; 63 public static final String NO_CHECK_RUNNING = "NO_CHECK_RUNNING";
64 public static final String START_MONITOR_THREAD = "START_MONITOR_THREAD"; 64 public static final String START_MONITOR_THREAD = "START_MONITOR_THREAD";
65 65
66 // public static final String SSL_TYPE = "TN5250J_SSL_TYPE"; 66 // public static final String SSL_TYPE = "TN5250J_SSL_TYPE";
67 public static final String SSL_TYPE = "-sslType"; 67 public static final String SSL_TYPE = "-sslType";
68 public static final String SSL_TYPE_NONE = "NONE"; 68 public static final String SSL_TYPE_NONE = "NONE";
69 public static final String SSL_TYPE_SSLv2 = "SSLv2"; 69 public static final String SSL_TYPE_SSLv2 = "SSLv2";
70 public static final String SSL_TYPE_SSLv3 = "SSLv3"; 70 public static final String SSL_TYPE_SSLv3 = "SSLv3";
71 public static final String SSL_TYPE_TLS = "TLS"; 71 public static final String SSL_TYPE_TLS = "TLS";
72 72
73 public static final String[] SSL_TYPES = {SSL_TYPE_NONE, 73 public static final String[] SSL_TYPES = {SSL_TYPE_NONE,
74 SSL_TYPE_SSLv2, 74 SSL_TYPE_SSLv2,
75 SSL_TYPE_SSLv3, 75 SSL_TYPE_SSLv3,
76 SSL_TYPE_TLS}; 76 SSL_TYPE_TLS
77 77 };
78 // Session JUMP Directions 78
79 static final int JUMP_PREVIOUS = 0; 79 // Session JUMP Directions
80 static final int JUMP_NEXT = 1; 80 static final int JUMP_PREVIOUS = 0;
81 static final int JUMP_NEXT = 1;
81 82
82 // // OS_OHIO_SESSION_TYPE type of sessions 83 // // OS_OHIO_SESSION_TYPE type of sessions
83 // public static final String OS_OHIO_SESSION_TYPE_5250_STR = "2"; 84 // public static final String OS_OHIO_SESSION_TYPE_5250_STR = "2";
84 85
85 // SCREEN_SIZE Size of screen string 86 // SCREEN_SIZE Size of screen string
86 public static final String SCREEN_SIZE_24X80_STR = "0"; 87 public static final String SCREEN_SIZE_24X80_STR = "0";
87 public static final String SCREEN_SIZE_27X132_STR = "1"; 88 public static final String SCREEN_SIZE_27X132_STR = "1";
88 89
89 // SCREEN_SIZE Size of screen int 90 // SCREEN_SIZE Size of screen int
90 public static final int SCREEN_SIZE_24X80 = 0; 91 public static final int SCREEN_SIZE_24X80 = 0;
91 public static final int SCREEN_SIZE_27X132 = 1; 92 public static final int SCREEN_SIZE_27X132 = 1;
92 93
93 public static final int NUM_PARMS = 20; 94 public static final int NUM_PARMS = 20;
94 95
95 // mnemonic value constants 96 // mnemonic value constants
96 public static final int BACK_SPACE = 1001; 97 public static final int BACK_SPACE = 1001;
97 public static final int BACK_TAB = 1002; 98 public static final int BACK_TAB = 1002;
98 public static final int UP = 1003; 99 public static final int UP = 1003;
99 public static final int DOWN = 1004; 100 public static final int DOWN = 1004;
100 public static final int LEFT = 1005; 101 public static final int LEFT = 1005;
101 public static final int RIGHT = 1006; 102 public static final int RIGHT = 1006;
102 public static final int DELETE = 1007; 103 public static final int DELETE = 1007;
103 public static final int TAB = 1008; 104 public static final int TAB = 1008;
104 public static final int EOF = 1009; 105 public static final int EOF = 1009;
105 public static final int ERASE_EOF = 1010; 106 public static final int ERASE_EOF = 1010;
106 public static final int ERASE_FIELD = 1011; 107 public static final int ERASE_FIELD = 1011;
107 public static final int INSERT = 1012; 108 public static final int INSERT = 1012;
108 public static final int HOME = 1013; 109 public static final int HOME = 1013;
109 public static final int KEYPAD_0 = 1014; 110 public static final int KEYPAD_0 = 1014;
110 public static final int KEYPAD_1 = 1015; 111 public static final int KEYPAD_1 = 1015;
111 public static final int KEYPAD_2 = 1016; 112 public static final int KEYPAD_2 = 1016;
112 public static final int KEYPAD_3 = 1017; 113 public static final int KEYPAD_3 = 1017;
113 public static final int KEYPAD_4 = 1018; 114 public static final int KEYPAD_4 = 1018;
114 public static final int KEYPAD_5 = 1019; 115 public static final int KEYPAD_5 = 1019;
115 public static final int KEYPAD_6 = 1020; 116 public static final int KEYPAD_6 = 1020;
116 public static final int KEYPAD_7 = 1021; 117 public static final int KEYPAD_7 = 1021;
117 public static final int KEYPAD_8 = 1022; 118 public static final int KEYPAD_8 = 1022;
118 public static final int KEYPAD_9 = 1023; 119 public static final int KEYPAD_9 = 1023;
119 public static final int KEYPAD_PERIOD = 1024; 120 public static final int KEYPAD_PERIOD = 1024;
120 public static final int KEYPAD_COMMA = 1025; 121 public static final int KEYPAD_COMMA = 1025;
121 public static final int KEYPAD_MINUS = 1026; 122 public static final int KEYPAD_MINUS = 1026;
122 public static final int FIELD_EXIT = 1027; 123 public static final int FIELD_EXIT = 1027;
123 public static final int FIELD_PLUS = 1028; 124 public static final int FIELD_PLUS = 1028;
124 public static final int FIELD_MINUS = 1029; 125 public static final int FIELD_MINUS = 1029;
125 public static final int BOF = 1030; 126 public static final int BOF = 1030;
126 public static final int SYSREQ = 1031; 127 public static final int SYSREQ = 1031;
127 public static final int RESET = 1032; 128 public static final int RESET = 1032;
128 public static final int NEXTWORD = 1033; 129 public static final int NEXTWORD = 1033;
129 public static final int PREVWORD = 1034; 130 public static final int PREVWORD = 1034;
130 public static final int COPY = 1035; 131 public static final int COPY = 1035;
131 public static final int PASTE = 1036; 132 public static final int PASTE = 1036;
132 public static final int ATTN = 1037; 133 public static final int ATTN = 1037;
133 public static final int MARK_UP = 1038; 134 public static final int MARK_UP = 1038;
134 public static final int MARK_DOWN = 1039; 135 public static final int MARK_DOWN = 1039;
135 public static final int MARK_LEFT = 1040; 136 public static final int MARK_LEFT = 1040;
136 public static final int MARK_RIGHT = 1041; 137 public static final int MARK_RIGHT = 1041;
137 public static final int DUP_FIELD = 1042; 138 public static final int DUP_FIELD = 1042;
138 public static final int NEW_LINE = 1043; 139 public static final int NEW_LINE = 1043;
139 public static final int JUMP_NEXT_SESS = 5000; 140 public static final int JUMP_NEXT_SESS = 5000;
140 public static final int JUMP_PREV_SESS = 5001; 141 public static final int JUMP_PREV_SESS = 5001;
141 public static final int OPEN_NEW = 5002; 142 public static final int OPEN_NEW = 5002;
142 public static final int TOGGLE_CONNECTION = 5003; 143 public static final int TOGGLE_CONNECTION = 5003;
143 public static final int HOTSPOTS = 5004; 144 public static final int HOTSPOTS = 5004;
144 public static final int GUI = 5005; 145 public static final int GUI = 5005;
145 public static final int DSP_MSGS = 5006; 146 public static final int DSP_MSGS = 5006;
146 public static final int DSP_ATTRIBUTES = 5007; 147 public static final int DSP_ATTRIBUTES = 5007;
147 public static final int PRINT_SCREEN = 5008; 148 public static final int PRINT_SCREEN = 5008;
148 public static final int CURSOR = 5009; 149 public static final int CURSOR = 5009;
149 public static final int DEBUG = 5010; 150 public static final int DEBUG = 5010;
150 public static final int CLOSE = 5011; 151 public static final int CLOSE = 5011;
151 public static final int TRANSFER = 5012; 152 public static final int TRANSFER = 5012;
152 public static final int E_MAIL = 5013; 153 public static final int E_MAIL = 5013;
153 public static final int RUN_SCRIPT = 5014; 154 public static final int RUN_SCRIPT = 5014;
154 public static final int SPOOL_FILE = 5015; 155 public static final int SPOOL_FILE = 5015;
155 public static final int QUICK_MAIL = 5016; 156 public static final int QUICK_MAIL = 5016;
156 public static final int OPEN_SAME = 5017; 157 public static final int OPEN_SAME = 5017;
157 public static final int FAST_CURSOR_DOWN = 5018; 158 public static final int FAST_CURSOR_DOWN = 5018;
158 public static final int FAST_CURSOR_UP = 5019; 159 public static final int FAST_CURSOR_UP = 5019;
159 public static final int FAST_CURSOR_RIGHT = 5020; 160 public static final int FAST_CURSOR_RIGHT = 5020;
160 public static final int FAST_CURSOR_LEFT = 5021; 161 public static final int FAST_CURSOR_LEFT = 5021;
161 162
162 // PF Keys 163 // PF Keys
163 public static final int PF1 = 0x31; 164 public static final int PF1 = 0x31;
164 public static final int PF2 = 0x32; 165 public static final int PF2 = 0x32;
165 public static final int PF3 = 0x33; 166 public static final int PF3 = 0x33;
166 public static final int PF4 = 0x34; 167 public static final int PF4 = 0x34;
167 public static final int PF5 = 0x35; 168 public static final int PF5 = 0x35;
168 public static final int PF6 = 0x36; 169 public static final int PF6 = 0x36;
169 public static final int PF7 = 0x37; 170 public static final int PF7 = 0x37;
170 public static final int PF8 = 0x38; 171 public static final int PF8 = 0x38;
171 public static final int PF9 = 0x39; 172 public static final int PF9 = 0x39;
172 public static final int PF10 = 0x3A; 173 public static final int PF10 = 0x3A;
173 public static final int PF11 = 0x3B; 174 public static final int PF11 = 0x3B;
174 public static final int PF12 = 0x3C; 175 public static final int PF12 = 0x3C;
175 public static final int PF13 = 0xB1; 176 public static final int PF13 = 0xB1;
176 public static final int PF14 = 0xB2; 177 public static final int PF14 = 0xB2;
177 public static final int PF15 = 0xB3; 178 public static final int PF15 = 0xB3;
178 public static final int PF16 = 0xB4; 179 public static final int PF16 = 0xB4;
179 public static final int PF17 = 0xB5; 180 public static final int PF17 = 0xB5;
180 public static final int PF18 = 0xB6; 181 public static final int PF18 = 0xB6;
181 public static final int PF19 = 0xB7; 182 public static final int PF19 = 0xB7;
182 public static final int PF20 = 0xB8; 183 public static final int PF20 = 0xB8;
183 public static final int PF21 = 0xB9; 184 public static final int PF21 = 0xB9;
184 public static final int PF22 = 0xBA; 185 public static final int PF22 = 0xBA;
185 public static final int PF23 = 0xBB; 186 public static final int PF23 = 0xBB;
186 public static final int PF24 = 0xBC; 187 public static final int PF24 = 0xBC;
187 188
188 public static final HashMap<String,Integer> mnemonicMap = new HashMap<String,Integer>(); 189 public static final HashMap<String, Integer> mnemonicMap = new HashMap<String, Integer>();
189 static { 190 static {
190 mnemonicMap.put("[backspace]", 1001); 191 mnemonicMap.put("[backspace]", 1001);
191 mnemonicMap.put("[backtab]", 1002); 192 mnemonicMap.put("[backtab]", 1002);
192 mnemonicMap.put("[up]", 1003); 193 mnemonicMap.put("[up]", 1003);
193 mnemonicMap.put("[down]", 1004); 194 mnemonicMap.put("[down]", 1004);
194 mnemonicMap.put("[left]", 1005); 195 mnemonicMap.put("[left]", 1005);
195
196 mnemonicMap.put("[right]", 1006); 196 mnemonicMap.put("[right]", 1006);
197 mnemonicMap.put("[delete]", 1007); 197 mnemonicMap.put("[delete]", 1007);
198 mnemonicMap.put("[tab]", 1008); 198 mnemonicMap.put("[tab]", 1008);
199 mnemonicMap.put("[eof]", 1009); 199 mnemonicMap.put("[eof]", 1009);
200 mnemonicMap.put("[eraseeof]", 1010); 200 mnemonicMap.put("[eraseeof]", 1010);
201
202 mnemonicMap.put("[erasefld]", 1011); 201 mnemonicMap.put("[erasefld]", 1011);
203 mnemonicMap.put("[insert]", 1012); 202 mnemonicMap.put("[insert]", 1012);
204 mnemonicMap.put("[home]", 1013); 203 mnemonicMap.put("[home]", 1013);
205 mnemonicMap.put("[keypad0]", 1014); 204 mnemonicMap.put("[keypad0]", 1014);
206 mnemonicMap.put("[keypad1]", 1015); 205 mnemonicMap.put("[keypad1]", 1015);
207
208 mnemonicMap.put("[keypad2]", 1016); 206 mnemonicMap.put("[keypad2]", 1016);
209 mnemonicMap.put("[keypad3]", 1017); 207 mnemonicMap.put("[keypad3]", 1017);
210 mnemonicMap.put("[keypad4]", 1018); 208 mnemonicMap.put("[keypad4]", 1018);
211 mnemonicMap.put("[keypad5]", 1019); 209 mnemonicMap.put("[keypad5]", 1019);
212 mnemonicMap.put("[keypad6]", 1020); 210 mnemonicMap.put("[keypad6]", 1020);
213
214 mnemonicMap.put("[keypad7]", 1021); 211 mnemonicMap.put("[keypad7]", 1021);
215 mnemonicMap.put("[keypad8]", 1022); 212 mnemonicMap.put("[keypad8]", 1022);
216 mnemonicMap.put("[keypad9]", 1023); 213 mnemonicMap.put("[keypad9]", 1023);
217 mnemonicMap.put("[keypad.]", 1024); 214 mnemonicMap.put("[keypad.]", 1024);
218 mnemonicMap.put("[keypad,]", 1025); 215 mnemonicMap.put("[keypad,]", 1025);
219
220 mnemonicMap.put("[keypad-]", 1026); 216 mnemonicMap.put("[keypad-]", 1026);
221 mnemonicMap.put("[fldext]", 1027); 217 mnemonicMap.put("[fldext]", 1027);
222 mnemonicMap.put("[field+]", 1028); 218 mnemonicMap.put("[field+]", 1028);
223 mnemonicMap.put("[field-]", 1029); 219 mnemonicMap.put("[field-]", 1029);
224 mnemonicMap.put("[bof]", 1030); 220 mnemonicMap.put("[bof]", 1030);
225
226 mnemonicMap.put("[enter]", 0xF1); 221 mnemonicMap.put("[enter]", 0xF1);
227 mnemonicMap.put("[pf1]", 0x31); 222 mnemonicMap.put("[pf1]", 0x31);
228 mnemonicMap.put("[pf2]", 0x32); 223 mnemonicMap.put("[pf2]", 0x32);
229 mnemonicMap.put("[pf3]", 0x33); 224 mnemonicMap.put("[pf3]", 0x33);
230 mnemonicMap.put("[pf4]", 0x34); 225 mnemonicMap.put("[pf4]", 0x34);
231
232 mnemonicMap.put("[pf5]", 0x35); 226 mnemonicMap.put("[pf5]", 0x35);
233 mnemonicMap.put("[pf6]", 0x36); 227 mnemonicMap.put("[pf6]", 0x36);
234 mnemonicMap.put("[pf7]", 0x37); 228 mnemonicMap.put("[pf7]", 0x37);
235 mnemonicMap.put("[pf8]", 0x38); 229 mnemonicMap.put("[pf8]", 0x38);
236 mnemonicMap.put("[pf9]", 0x39); 230 mnemonicMap.put("[pf9]", 0x39);
237
238 mnemonicMap.put("[pf10]", 0x3A); 231 mnemonicMap.put("[pf10]", 0x3A);
239 mnemonicMap.put("[pf11]", 0x3B); 232 mnemonicMap.put("[pf11]", 0x3B);
240 mnemonicMap.put("[pf12]", 0x3C); 233 mnemonicMap.put("[pf12]", 0x3C);
241 mnemonicMap.put("[pf13]", 0xB1); 234 mnemonicMap.put("[pf13]", 0xB1);
242 mnemonicMap.put("[pf14]", 0xB2); 235 mnemonicMap.put("[pf14]", 0xB2);
243
244 mnemonicMap.put("[pf15]", 0xB3); 236 mnemonicMap.put("[pf15]", 0xB3);
245 mnemonicMap.put("[pf16]", 0xB4); 237 mnemonicMap.put("[pf16]", 0xB4);
246 mnemonicMap.put("[pf17]", 0xB5); 238 mnemonicMap.put("[pf17]", 0xB5);
247 mnemonicMap.put("[pf18]", 0xB6); 239 mnemonicMap.put("[pf18]", 0xB6);
248 mnemonicMap.put("[pf19]", 0xB7); 240 mnemonicMap.put("[pf19]", 0xB7);
249
250 mnemonicMap.put("[pf20]", 0xB8); 241 mnemonicMap.put("[pf20]", 0xB8);
251 mnemonicMap.put("[pf21]", 0xB9); 242 mnemonicMap.put("[pf21]", 0xB9);
252 mnemonicMap.put("[pf22]", 0xBA); 243 mnemonicMap.put("[pf22]", 0xBA);
253 mnemonicMap.put("[pf23]", 0xBB); 244 mnemonicMap.put("[pf23]", 0xBB);
254 mnemonicMap.put("[pf24]", 0xBC); 245 mnemonicMap.put("[pf24]", 0xBC);
255
256 mnemonicMap.put("[clear]", 0xBD); 246 mnemonicMap.put("[clear]", 0xBD);
257 mnemonicMap.put("[help]", 0xF3); 247 mnemonicMap.put("[help]", 0xF3);
258 mnemonicMap.put("[pgup]", 0xF4); 248 mnemonicMap.put("[pgup]", 0xF4);
259 mnemonicMap.put("[pgdown]", 0xF5); 249 mnemonicMap.put("[pgdown]", 0xF5);
260 mnemonicMap.put("[rollleft]", 0xD9); 250 mnemonicMap.put("[rollleft]", 0xD9);
261
262 mnemonicMap.put("[rollright]", 0xDA); 251 mnemonicMap.put("[rollright]", 0xDA);
263 mnemonicMap.put("[hostprint]", 0xF6); 252 mnemonicMap.put("[hostprint]", 0xF6);
264 mnemonicMap.put("[pa1]", 0x6C); 253 mnemonicMap.put("[pa1]", 0x6C);
265 mnemonicMap.put("[pa2]", 0x6E); 254 mnemonicMap.put("[pa2]", 0x6E);
266 mnemonicMap.put("[pa3]", 0x6B); 255 mnemonicMap.put("[pa3]", 0x6B);
267
268 mnemonicMap.put("[sysreq]", 1031); 256 mnemonicMap.put("[sysreq]", 1031);
269 mnemonicMap.put("[reset]", 1032); 257 mnemonicMap.put("[reset]", 1032);
270 mnemonicMap.put("[nextword]", 1033); 258 mnemonicMap.put("[nextword]", 1033);
271 mnemonicMap.put("[prevword]", 1034); 259 mnemonicMap.put("[prevword]", 1034);
272 mnemonicMap.put("[copy]", 1035); 260 mnemonicMap.put("[copy]", 1035);
273
274 mnemonicMap.put("[paste]", 1036); 261 mnemonicMap.put("[paste]", 1036);
275 mnemonicMap.put("[attn]", 1037); 262 mnemonicMap.put("[attn]", 1037);
276 mnemonicMap.put("[markup]", 1038); 263 mnemonicMap.put("[markup]", 1038);
277 mnemonicMap.put("[markdown]", 1039); 264 mnemonicMap.put("[markdown]", 1039);
278 mnemonicMap.put("[markleft]", 1040); 265 mnemonicMap.put("[markleft]", 1040);
279
280 mnemonicMap.put("[markright]", 1041); 266 mnemonicMap.put("[markright]", 1041);
281 mnemonicMap.put("[dupfield]", 1042); 267 mnemonicMap.put("[dupfield]", 1042);
282 mnemonicMap.put("[newline]", 1043); 268 mnemonicMap.put("[newline]", 1043);
283 mnemonicMap.put("[jumpnext]", 5000); 269 mnemonicMap.put("[jumpnext]", 5000);
284 mnemonicMap.put("[jumpprev]", 5001); 270 mnemonicMap.put("[jumpprev]", 5001);
285
286 mnemonicMap.put("[opennew]", 5002); 271 mnemonicMap.put("[opennew]", 5002);
287 mnemonicMap.put("[togcon]", 5003); 272 mnemonicMap.put("[togcon]", 5003);
288 mnemonicMap.put("[hotspots]", 5004); 273 mnemonicMap.put("[hotspots]", 5004);
289 mnemonicMap.put("[gui]", 5005); 274 mnemonicMap.put("[gui]", 5005);
290 mnemonicMap.put("[dspmsgs]", 5006); 275 mnemonicMap.put("[dspmsgs]", 5006);
291
292 mnemonicMap.put("[dspattr]", 5007); 276 mnemonicMap.put("[dspattr]", 5007);
293 mnemonicMap.put("[print]", 5008); 277 mnemonicMap.put("[print]", 5008);
294 mnemonicMap.put("[cursor]", 5009); 278 mnemonicMap.put("[cursor]", 5009);
295 mnemonicMap.put("[debug]", 5010); 279 mnemonicMap.put("[debug]", 5010);
296 mnemonicMap.put("[close]", 5011); 280 mnemonicMap.put("[close]", 5011);
297
298 mnemonicMap.put("[transfer]", 5012); 281 mnemonicMap.put("[transfer]", 5012);
299 mnemonicMap.put("[e-mail]", 5013); 282 mnemonicMap.put("[e-mail]", 5013);
300 mnemonicMap.put("[runscript]", 5014); 283 mnemonicMap.put("[runscript]", 5014);
301 mnemonicMap.put("[spoolfile]", 5015); 284 mnemonicMap.put("[spoolfile]", 5015);
302 mnemonicMap.put("[quick-mail]", 5016); 285 mnemonicMap.put("[quick-mail]", 5016);
303
304 mnemonicMap.put("[open-same]", 5017); 286 mnemonicMap.put("[open-same]", 5017);
305 mnemonicMap.put("[fastcursordown]", 5018); 287 mnemonicMap.put("[fastcursordown]", 5018);
306 mnemonicMap.put("[fastcursorup]", 5019); 288 mnemonicMap.put("[fastcursorup]", 5019);
307 mnemonicMap.put("[fastcursorright]", 5020); 289 mnemonicMap.put("[fastcursorright]", 5020);
308 mnemonicMap.put("[fastcursorleft]", 5021); 290 mnemonicMap.put("[fastcursorleft]", 5021);
309 }; 291 };
310 292
311 public static final String MNEMONIC_CLEAR = "[clear]"; 293 public static final String MNEMONIC_CLEAR = "[clear]";
312 public static final String MNEMONIC_ENTER = "[enter]"; 294 public static final String MNEMONIC_ENTER = "[enter]";
313 public static final String MNEMONIC_HELP = "[help]"; 295 public static final String MNEMONIC_HELP = "[help]";
314 public static final String MNEMONIC_PAGE_DOWN = "[pgdown]"; 296 public static final String MNEMONIC_PAGE_DOWN = "[pgdown]";
315 public static final String MNEMONIC_PAGE_UP = "[pgup]"; 297 public static final String MNEMONIC_PAGE_UP = "[pgup]";
316 public static final String MNEMONIC_PRINT = "[hostprint]"; 298 public static final String MNEMONIC_PRINT = "[hostprint]";
317 public static final String MNEMONIC_PF1 = "[pf1]"; 299 public static final String MNEMONIC_PF1 = "[pf1]";
318 public static final String MNEMONIC_PF2 = "[pf2]"; 300 public static final String MNEMONIC_PF2 = "[pf2]";
319 public static final String MNEMONIC_PF3 = "[pf3]"; 301 public static final String MNEMONIC_PF3 = "[pf3]";
320 public static final String MNEMONIC_PF4 = "[pf4]"; 302 public static final String MNEMONIC_PF4 = "[pf4]";
321 public static final String MNEMONIC_PF5 = "[pf5]"; 303 public static final String MNEMONIC_PF5 = "[pf5]";
322 public static final String MNEMONIC_PF6 = "[pf6]"; 304 public static final String MNEMONIC_PF6 = "[pf6]";
323 public static final String MNEMONIC_PF7 = "[pf7]"; 305 public static final String MNEMONIC_PF7 = "[pf7]";
324 public static final String MNEMONIC_PF8 = "[pf8]"; 306 public static final String MNEMONIC_PF8 = "[pf8]";
325 public static final String MNEMONIC_PF9 = "[pf9]"; 307 public static final String MNEMONIC_PF9 = "[pf9]";
326 public static final String MNEMONIC_PF10 = "[pf10]"; 308 public static final String MNEMONIC_PF10 = "[pf10]";
327 public static final String MNEMONIC_PF11 = "[pf11]"; 309 public static final String MNEMONIC_PF11 = "[pf11]";
328 public static final String MNEMONIC_PF12 = "[pf12]"; 310 public static final String MNEMONIC_PF12 = "[pf12]";
329 public static final String MNEMONIC_PF13 = "[pf13]"; 311 public static final String MNEMONIC_PF13 = "[pf13]";
330 public static final String MNEMONIC_PF14 = "[pf14]"; 312 public static final String MNEMONIC_PF14 = "[pf14]";
331 public static final String MNEMONIC_PF15 = "[pf15]"; 313 public static final String MNEMONIC_PF15 = "[pf15]";
332 public static final String MNEMONIC_PF16 = "[pf16]"; 314 public static final String MNEMONIC_PF16 = "[pf16]";
333 public static final String MNEMONIC_PF17 = "[pf17]"; 315 public static final String MNEMONIC_PF17 = "[pf17]";
334 public static final String MNEMONIC_PF18 = "[pf18]"; 316 public static final String MNEMONIC_PF18 = "[pf18]";
335 public static final String MNEMONIC_PF19 = "[pf19]"; 317 public static final String MNEMONIC_PF19 = "[pf19]";
336 public static final String MNEMONIC_PF20 = "[pf20]"; 318 public static final String MNEMONIC_PF20 = "[pf20]";
337 public static final String MNEMONIC_PF21 = "[pf21]"; 319 public static final String MNEMONIC_PF21 = "[pf21]";
338 public static final String MNEMONIC_PF22 = "[pf22]"; 320 public static final String MNEMONIC_PF22 = "[pf22]";
339 public static final String MNEMONIC_PF23 = "[pf23]"; 321 public static final String MNEMONIC_PF23 = "[pf23]";
340 public static final String MNEMONIC_PF24 = "[pf24]"; 322 public static final String MNEMONIC_PF24 = "[pf24]";
341 public static final String MNEMONIC_BACK_SPACE = "[backspace]"; 323 public static final String MNEMONIC_BACK_SPACE = "[backspace]";
342 public static final String MNEMONIC_BACK_TAB = "[backtab]"; 324 public static final String MNEMONIC_BACK_TAB = "[backtab]";
343 public static final String MNEMONIC_UP = "[up]"; 325 public static final String MNEMONIC_UP = "[up]";
344 public static final String MNEMONIC_DOWN = "[down]"; 326 public static final String MNEMONIC_DOWN = "[down]";
345 public static final String MNEMONIC_LEFT = "[left]"; 327 public static final String MNEMONIC_LEFT = "[left]";
346 public static final String MNEMONIC_RIGHT = "[right]"; 328 public static final String MNEMONIC_RIGHT = "[right]";
347 public static final String MNEMONIC_DELETE = "[delete]"; 329 public static final String MNEMONIC_DELETE = "[delete]";
348 public static final String MNEMONIC_TAB = "[tab]"; 330 public static final String MNEMONIC_TAB = "[tab]";
349 public static final String MNEMONIC_END_OF_FIELD = "[eof]"; 331 public static final String MNEMONIC_END_OF_FIELD = "[eof]";
350 public static final String MNEMONIC_ERASE_EOF = "[eraseeof]"; 332 public static final String MNEMONIC_ERASE_EOF = "[eraseeof]";
351 public static final String MNEMONIC_ERASE_FIELD = "[erasefld]"; 333 public static final String MNEMONIC_ERASE_FIELD = "[erasefld]";
352 public static final String MNEMONIC_INSERT = "[insert]"; 334 public static final String MNEMONIC_INSERT = "[insert]";
353 public static final String MNEMONIC_HOME = "[home]"; 335 public static final String MNEMONIC_HOME = "[home]";
354 public static final String MNEMONIC_KEYPAD0 = "[keypad0]"; 336 public static final String MNEMONIC_KEYPAD0 = "[keypad0]";
355 public static final String MNEMONIC_KEYPAD1 = "[keypad1]"; 337 public static final String MNEMONIC_KEYPAD1 = "[keypad1]";
356 public static final String MNEMONIC_KEYPAD2 = "[keypad2]"; 338 public static final String MNEMONIC_KEYPAD2 = "[keypad2]";
357 public static final String MNEMONIC_KEYPAD3 = "[keypad3]"; 339 public static final String MNEMONIC_KEYPAD3 = "[keypad3]";
358 public static final String MNEMONIC_KEYPAD4 = "[keypad4]"; 340 public static final String MNEMONIC_KEYPAD4 = "[keypad4]";
359 public static final String MNEMONIC_KEYPAD5 = "[keypad5]"; 341 public static final String MNEMONIC_KEYPAD5 = "[keypad5]";
360 public static final String MNEMONIC_KEYPAD6 = "[keypad6]"; 342 public static final String MNEMONIC_KEYPAD6 = "[keypad6]";
361 public static final String MNEMONIC_KEYPAD7 = "[keypad7]"; 343 public static final String MNEMONIC_KEYPAD7 = "[keypad7]";
362 public static final String MNEMONIC_KEYPAD8 = "[keypad8]"; 344 public static final String MNEMONIC_KEYPAD8 = "[keypad8]";
363 public static final String MNEMONIC_KEYPAD9 = "[keypad9]"; 345 public static final String MNEMONIC_KEYPAD9 = "[keypad9]";
364 public static final String MNEMONIC_KEYPAD_PERIOD = "[keypad.]"; 346 public static final String MNEMONIC_KEYPAD_PERIOD = "[keypad.]";
365 public static final String MNEMONIC_KEYPAD_COMMA = "[keypad,]"; 347 public static final String MNEMONIC_KEYPAD_COMMA = "[keypad,]";
366 public static final String MNEMONIC_KEYPAD_MINUS = "[keypad-]"; 348 public static final String MNEMONIC_KEYPAD_MINUS = "[keypad-]";
367 public static final String MNEMONIC_FIELD_EXIT = "[fldext]"; 349 public static final String MNEMONIC_FIELD_EXIT = "[fldext]";
368 public static final String MNEMONIC_FIELD_PLUS = "[field+]"; 350 public static final String MNEMONIC_FIELD_PLUS = "[field+]";
369 public static final String MNEMONIC_FIELD_MINUS = "[field-]"; 351 public static final String MNEMONIC_FIELD_MINUS = "[field-]";
370 public static final String MNEMONIC_BEGIN_OF_FIELD = "[bof]"; 352 public static final String MNEMONIC_BEGIN_OF_FIELD = "[bof]";
371 public static final String MNEMONIC_PA1 = "[pa1]"; 353 public static final String MNEMONIC_PA1 = "[pa1]";
372 public static final String MNEMONIC_PA2 = "[pa2]"; 354 public static final String MNEMONIC_PA2 = "[pa2]";
373 public static final String MNEMONIC_PA3 = "[pa3]"; 355 public static final String MNEMONIC_PA3 = "[pa3]";
374 public static final String MNEMONIC_SYSREQ = "[sysreq]"; 356 public static final String MNEMONIC_SYSREQ = "[sysreq]";
375 public static final String MNEMONIC_RESET = "[reset]"; 357 public static final String MNEMONIC_RESET = "[reset]";
376 public static final String MNEMONIC_NEXTWORD = "[nextword]"; 358 public static final String MNEMONIC_NEXTWORD = "[nextword]";
377 public static final String MNEMONIC_PREVWORD = "[prevword]"; 359 public static final String MNEMONIC_PREVWORD = "[prevword]";
378 public static final String MNEMONIC_ATTN = "[attn]"; 360 public static final String MNEMONIC_ATTN = "[attn]";
379 public static final String MNEMONIC_MARK_LEFT = "[markleft]"; 361 public static final String MNEMONIC_MARK_LEFT = "[markleft]";
380 public static final String MNEMONIC_MARK_RIGHT = "[markright]"; 362 public static final String MNEMONIC_MARK_RIGHT = "[markright]";
381 public static final String MNEMONIC_MARK_UP = "[markup]"; 363 public static final String MNEMONIC_MARK_UP = "[markup]";
382 public static final String MNEMONIC_MARK_DOWN = "[markdown]"; 364 public static final String MNEMONIC_MARK_DOWN = "[markdown]";
383 public static final String MNEMONIC_DUP_FIELD = "[dupfield]"; 365 public static final String MNEMONIC_DUP_FIELD = "[dupfield]";
384 public static final String MNEMONIC_NEW_LINE = "[newline]"; 366 public static final String MNEMONIC_NEW_LINE = "[newline]";
385 public static final String MNEMONIC_JUMP_NEXT = "[jumpnext]"; 367 public static final String MNEMONIC_JUMP_NEXT = "[jumpnext]";
386 public static final String MNEMONIC_JUMP_PREV = "[jumpprev]"; 368 public static final String MNEMONIC_JUMP_PREV = "[jumpprev]";
387 public static final String MNEMONIC_OPEN_NEW = "[opennew]"; 369 public static final String MNEMONIC_OPEN_NEW = "[opennew]";
388 public static final String MNEMONIC_TOGGLE_CONNECTION = "[togcon]"; 370 public static final String MNEMONIC_TOGGLE_CONNECTION = "[togcon]";
389 public static final String MNEMONIC_HOTSPOTS = "[hotspots]"; 371 public static final String MNEMONIC_HOTSPOTS = "[hotspots]";
390 public static final String MNEMONIC_GUI = "[gui]"; 372 public static final String MNEMONIC_GUI = "[gui]";
391 public static final String MNEMONIC_DISP_MESSAGES = "[dspmsgs]"; 373 public static final String MNEMONIC_DISP_MESSAGES = "[dspmsgs]";
392 public static final String MNEMONIC_DISP_ATTRIBUTES = "[dspattr]"; 374 public static final String MNEMONIC_DISP_ATTRIBUTES = "[dspattr]";
393 public static final String MNEMONIC_PRINT_SCREEN = "[print]"; 375 public static final String MNEMONIC_PRINT_SCREEN = "[print]";
394 public static final String MNEMONIC_CURSOR = "[cursor]"; 376 public static final String MNEMONIC_CURSOR = "[cursor]";
395 public static final String MNEMONIC_DEBUG = "[debug]"; 377 public static final String MNEMONIC_DEBUG = "[debug]";
396 public static final String MNEMONIC_CLOSE = "[close]"; 378 public static final String MNEMONIC_CLOSE = "[close]";
397 public static final String MNEMONIC_E_MAIL = "[e-mail]"; 379 public static final String MNEMONIC_E_MAIL = "[e-mail]";
398 public static final String MNEMONIC_COPY = "[copy]"; 380 public static final String MNEMONIC_COPY = "[copy]";
399 public static final String MNEMONIC_PASTE = "[paste]"; 381 public static final String MNEMONIC_PASTE = "[paste]";
400 public static final String MNEMONIC_FILE_TRANSFER = "[transfer]"; 382 public static final String MNEMONIC_FILE_TRANSFER = "[transfer]";
401 public static final String MNEMONIC_RUN_SCRIPT = "[runscript]"; 383 public static final String MNEMONIC_RUN_SCRIPT = "[runscript]";
402 public static final String MNEMONIC_SPOOL_FILE = "[spoolfile]"; 384 public static final String MNEMONIC_SPOOL_FILE = "[spoolfile]";
403 public static final String MNEMONIC_QUICK_MAIL = "[quick-mail]"; 385 public static final String MNEMONIC_QUICK_MAIL = "[quick-mail]";
404 public static final String MNEMONIC_OPEN_SAME = "[open-same]"; 386 public static final String MNEMONIC_OPEN_SAME = "[open-same]";
405 public static final String MNEMONIC_FAST_CURSOR_DOWN = "[fastcursordown]"; 387 public static final String MNEMONIC_FAST_CURSOR_DOWN = "[fastcursordown]";
406 public static final String MNEMONIC_FAST_CURSOR_UP = "[fastcursorup]"; 388 public static final String MNEMONIC_FAST_CURSOR_UP = "[fastcursorup]";
407 public static final String MNEMONIC_FAST_CURSOR_RIGHT = "[fastcursorright]"; 389 public static final String MNEMONIC_FAST_CURSOR_RIGHT = "[fastcursorright]";
408 public static final String MNEMONIC_FAST_CURSOR_LEFT = "[fastcursorleft]"; 390 public static final String MNEMONIC_FAST_CURSOR_LEFT = "[fastcursorleft]";
409 391
410 // AID-Generating Keys 392 // AID-Generating Keys
411 public static final int AID_CLEAR = 0xBD; 393 public static final int AID_CLEAR = 0xBD;
412 public static final int AID_ENTER = 0xF1; 394 public static final int AID_ENTER = 0xF1;
413 public static final int AID_HELP = 0xF3; 395 public static final int AID_HELP = 0xF3;
414 public static final int AID_ROLL_UP = 0xF4; 396 public static final int AID_ROLL_UP = 0xF4;
415 public static final int AID_ROLL_DOWN = 0xF5; 397 public static final int AID_ROLL_DOWN = 0xF5;
416 public static final int AID_ROLL_LEFT = 0xD9; 398 public static final int AID_ROLL_LEFT = 0xD9;
417 public static final int AID_ROLL_RIGHT = 0xDA; 399 public static final int AID_ROLL_RIGHT = 0xDA;
418 public static final int AID_PRINT = 0xF6; 400 public static final int AID_PRINT = 0xF6;
419 public static final int AID_PF1 = 0x31; 401 public static final int AID_PF1 = 0x31;
420 public static final int AID_PF2 = 0x32; 402 public static final int AID_PF2 = 0x32;
421 public static final int AID_PF3 = 0x33; 403 public static final int AID_PF3 = 0x33;
422 public static final int AID_PF4 = 0x34; 404 public static final int AID_PF4 = 0x34;
423 public static final int AID_PF5 = 0x35; 405 public static final int AID_PF5 = 0x35;
424 public static final int AID_PF6 = 0x36; 406 public static final int AID_PF6 = 0x36;
425 public static final int AID_PF7 = 0x37; 407 public static final int AID_PF7 = 0x37;
426 public static final int AID_PF8 = 0x38; 408 public static final int AID_PF8 = 0x38;
427 public static final int AID_PF9 = 0x39; 409 public static final int AID_PF9 = 0x39;
428 public static final int AID_PF10 = 0x3A; 410 public static final int AID_PF10 = 0x3A;
429 public static final int AID_PF11 = 0x3B; 411 public static final int AID_PF11 = 0x3B;
430 public static final int AID_PF12 = 0x3C; 412 public static final int AID_PF12 = 0x3C;
431 public static final int AID_PF13 = 0xB1; 413 public static final int AID_PF13 = 0xB1;
432 public static final int AID_PF14 = 0xB2; 414 public static final int AID_PF14 = 0xB2;
433 public static final int AID_PF15 = 0xB3; 415 public static final int AID_PF15 = 0xB3;
434 public static final int AID_PF16 = 0xB4; 416 public static final int AID_PF16 = 0xB4;
435 public static final int AID_PF17 = 0xB5; 417 public static final int AID_PF17 = 0xB5;
436 public static final int AID_PF18 = 0xB6; 418 public static final int AID_PF18 = 0xB6;
437 public static final int AID_PF19 = 0xB7; 419 public static final int AID_PF19 = 0xB7;
438 public static final int AID_PF20 = 0xB8; 420 public static final int AID_PF20 = 0xB8;
439 public static final int AID_PF21 = 0xB9; 421 public static final int AID_PF21 = 0xB9;
440 public static final int AID_PF22 = 0xBA; 422 public static final int AID_PF22 = 0xBA;
441 public static final int AID_PF23 = 0xBB; 423 public static final int AID_PF23 = 0xBB;
442 public static final int AID_PF24 = 0xBC; 424 public static final int AID_PF24 = 0xBC;
443 425
444 // negative response categories 426 // negative response categories
445 public static final int NR_REQUEST_REJECT = 0x08; 427 public static final int NR_REQUEST_REJECT = 0x08;
446 public static final int NR_REQUEST_ERROR = 0x10; 428 public static final int NR_REQUEST_ERROR = 0x10;
447 public static final int NR_STATE_ERROR = 0x20; 429 public static final int NR_STATE_ERROR = 0x20;
448 public static final int NR_USAGE_ERROR = 0x40; 430 public static final int NR_USAGE_ERROR = 0x40;
449 public static final int NR_PATH_ERROR = 0x80; 431 public static final int NR_PATH_ERROR = 0x80;
450 432
451 // commands 433 // commands
452 public static final byte CMD_WRITE_TO_DISPLAY = 0x11; // 17 434 public static final byte CMD_WRITE_TO_DISPLAY = 0x11; // 17
453 public static final byte CMD_CLEAR_UNIT = 0x40; // 64 435 public static final byte CMD_CLEAR_UNIT = 0x40; // 64
454 public static final byte CMD_CLEAR_UNIT_ALTERNATE = 0x20; // 32 436 public static final byte CMD_CLEAR_UNIT_ALTERNATE = 0x20; // 32
455 public static final byte CMD_CLEAR_FORMAT_TABLE = 0x50; // 80 437 public static final byte CMD_CLEAR_FORMAT_TABLE = 0x50; // 80
456 public static final byte CMD_READ_INPUT_FIELDS = 0x42; // 66 438 public static final byte CMD_READ_INPUT_FIELDS = 0x42; // 66
457 public static final byte CMD_READ_MDT_FIELDS = 0x52; // 82 439 public static final byte CMD_READ_MDT_FIELDS = 0x52; // 82
458 public static final byte CMD_READ_MDT_IMMEDIATE_ALT = (byte)0x83; // 131 440 public static final byte CMD_READ_MDT_IMMEDIATE_ALT = (byte)0x83; // 131
459 // public static final byte CMD_READ_MDT_FIELDS_ALT = (byte)0x82; // 130 441 // public static final byte CMD_READ_MDT_FIELDS_ALT = (byte)0x82; // 130
460 // public static final byte CMD_READ_IMMEDIATE = 0x72; // 114 442 // public static final byte CMD_READ_IMMEDIATE = 0x72; // 114
461 public static final byte CMD_READ_SCREEN_IMMEDIATE = 0x62; // 98 443 public static final byte CMD_READ_SCREEN_IMMEDIATE = 0x62; // 98
462 public static final byte CMD_WRITE_STRUCTURED_FIELD = (byte)243; // (byte)0xF3 -13 444 public static final byte CMD_WRITE_STRUCTURED_FIELD = (byte)243; // (byte)0xF3 -13
463 public static final byte CMD_SAVE_SCREEN = 0x02; // 02 445 public static final byte CMD_SAVE_SCREEN = 0x02; // 02
464 public static final byte CMD_RESTORE_SCREEN = 0x12; // 18 446 public static final byte CMD_RESTORE_SCREEN = 0x12; // 18
465 public static final byte CMD_WRITE_ERROR_CODE = 0x21; // 33 447 public static final byte CMD_WRITE_ERROR_CODE = 0x21; // 33
466 public static final byte CMD_WRITE_ERROR_CODE_TO_WINDOW = 0x22; // 34 448 public static final byte CMD_WRITE_ERROR_CODE_TO_WINDOW = 0x22; // 34
467 public static final byte CMD_ROLL = 0x23; // 35 449 public static final byte CMD_ROLL = 0x23; // 35
468 public static final byte CMD_READ_SCREEN_TO_PRINT = (byte)0x66; // 102 450 public static final byte CMD_READ_SCREEN_TO_PRINT = (byte)0x66; // 102
469 451
470 // PLANES 452 // PLANES
471 public static final int PLANE_TEXT = 1; 453 public static final int PLANE_TEXT = 1;
472 public static final int PLANE_COLOR = 2; 454 public static final int PLANE_COLOR = 2;
473 public static final int PLANE_FIELD = 3; 455 public static final int PLANE_FIELD = 3;
474 public static final int PLANE_EXTENDED = 4; 456 public static final int PLANE_EXTENDED = 4;
475 public static final int PLANE_EXTENDED_GRAPHIC = 5; 457 public static final int PLANE_EXTENDED_GRAPHIC = 5;
476 public static final int PLANE_EXTENDED_FIELD = 6; 458 public static final int PLANE_EXTENDED_FIELD = 6;
477 public static final int PLANE_ATTR = 7; 459 public static final int PLANE_ATTR = 7;
478 public static final int PLANE_IS_ATTR_PLACE = 8; 460 public static final int PLANE_IS_ATTR_PLACE = 8;
479 461
480 // COLOR_BG 462 // COLOR_BG
481 public static final char COLOR_BG_BLACK = 0; 463 public static final char COLOR_BG_BLACK = 0;
482 public static final char COLOR_BG_BLUE = 1; 464 public static final char COLOR_BG_BLUE = 1;
483 public static final char COLOR_BG_GREEN = 2; 465 public static final char COLOR_BG_GREEN = 2;
484 public static final char COLOR_BG_CYAN = 3; 466 public static final char COLOR_BG_CYAN = 3;
485 public static final char COLOR_BG_RED = 4; 467 public static final char COLOR_BG_RED = 4;
486 public static final char COLOR_BG_MAGENTA = 5; 468 public static final char COLOR_BG_MAGENTA = 5;
487 public static final char COLOR_BG_YELLOW = 6; 469 public static final char COLOR_BG_YELLOW = 6;
488 public static final char COLOR_BG_WHITE = 7; 470 public static final char COLOR_BG_WHITE = 7;
489 471
490 // COLOR_FG 472 // COLOR_FG
491 public static final char COLOR_FG_BLACK = 0; 473 public static final char COLOR_FG_BLACK = 0;
492 public static final char COLOR_FG_BLUE = 1; 474 public static final char COLOR_FG_BLUE = 1;
493 public static final char COLOR_FG_GREEN = 2; 475 public static final char COLOR_FG_GREEN = 2;
494 public static final char COLOR_FG_CYAN = 3; 476 public static final char COLOR_FG_CYAN = 3;
495 public static final char COLOR_FG_RED = 4; 477 public static final char COLOR_FG_RED = 4;
496 public static final char COLOR_FG_MAGENTA = 5; 478 public static final char COLOR_FG_MAGENTA = 5;
497 public static final char COLOR_FG_YELLOW = 6; 479 public static final char COLOR_FG_YELLOW = 6;
498 public static final char COLOR_FG_WHITE = 7; 480 public static final char COLOR_FG_WHITE = 7;
499 public static final char COLOR_FG_GRAY = 8; 481 public static final char COLOR_FG_GRAY = 8;
500 public static final char COLOR_FG_LIGHT_BLUE = 9; 482 public static final char COLOR_FG_LIGHT_BLUE = 9;
501 public static final char COLOR_FG_LIGHT_GREEN = 0xA; 483 public static final char COLOR_FG_LIGHT_GREEN = 0xA;
502 public static final char COLOR_FG_LIGHT_CYAN = 0xB; 484 public static final char COLOR_FG_LIGHT_CYAN = 0xB;
503 public static final char COLOR_FG_LIGHT_RED = 0xC; 485 public static final char COLOR_FG_LIGHT_RED = 0xC;
504 public static final char COLOR_FG_LIGHT_MAGENTA = 0xD; 486 public static final char COLOR_FG_LIGHT_MAGENTA = 0xD;
505 public static final char COLOR_FG_BROWN = 0xE; 487 public static final char COLOR_FG_BROWN = 0xE;
506 public static final char COLOR_FG_WHITE_HIGH = 0xF; 488 public static final char COLOR_FG_WHITE_HIGH = 0xF;
507 489
508 public static final int EXTENDED_5250_REVERSE = 0x10; 490 public static final int EXTENDED_5250_REVERSE = 0x10;
509 public static final int EXTENDED_5250_UNDERLINE = 0x08; 491 public static final int EXTENDED_5250_UNDERLINE = 0x08;
510 public static final int EXTENDED_5250_BLINK = 0x04; 492 public static final int EXTENDED_5250_BLINK = 0x04;
511 public static final int EXTENDED_5250_COL_SEP = 0x02; 493 public static final int EXTENDED_5250_COL_SEP = 0x02;
512 public static final int EXTENDED_5250_NON_DSP = 0x01; 494 public static final int EXTENDED_5250_NON_DSP = 0x01;
513 495
514 public static final char ATTR_32 = (COLOR_BG_BLACK << 8 & 0xff00) | 496 public static final char ATTR_32 = (COLOR_BG_BLACK << 8 & 0xff00) |
515 (COLOR_FG_GREEN & 0xff); 497 (COLOR_FG_GREEN & 0xff);
516 public static final char ATTR_33 = (COLOR_BG_GREEN << 8 & 0xff00) | 498 public static final char ATTR_33 = (COLOR_BG_GREEN << 8 & 0xff00) |
517 (COLOR_FG_BLACK & 0xff); 499 (COLOR_FG_BLACK & 0xff);
518 public static final char ATTR_34 = (COLOR_BG_BLACK << 8 & 0xff00) | 500 public static final char ATTR_34 = (COLOR_BG_BLACK << 8 & 0xff00) |
519 (COLOR_FG_WHITE & 0xff); 501 (COLOR_FG_WHITE & 0xff);
520 public static final char ATTR_35 = (COLOR_BG_WHITE << 8 & 0xff00) | 502 public static final char ATTR_35 = (COLOR_BG_WHITE << 8 & 0xff00) |
521 (COLOR_FG_BLACK & 0xff); 503 (COLOR_FG_BLACK & 0xff);
522 public static final char ATTR_36 = (COLOR_BG_BLACK << 8 & 0xff00) | 504 public static final char ATTR_36 = (COLOR_BG_BLACK << 8 & 0xff00) |
523 (COLOR_FG_GREEN & 0xff); 505 (COLOR_FG_GREEN & 0xff);
524 public static final char ATTR_37 = (COLOR_BG_GREEN << 8 & 0xff00) | 506 public static final char ATTR_37 = (COLOR_BG_GREEN << 8 & 0xff00) |
525 (COLOR_FG_BLACK & 0xff); 507 (COLOR_FG_BLACK & 0xff);
526 public static final char ATTR_38 = (COLOR_BG_BLACK << 8 & 0xff00) | 508 public static final char ATTR_38 = (COLOR_BG_BLACK << 8 & 0xff00) |
527 (COLOR_FG_WHITE & 0xff); 509 (COLOR_FG_WHITE & 0xff);
528 public static final char ATTR_40 = (COLOR_BG_BLACK << 8 & 0xff00) | 510 public static final char ATTR_40 = (COLOR_BG_BLACK << 8 & 0xff00) |
529 (COLOR_FG_RED & 0xff); 511 (COLOR_FG_RED & 0xff);
530 public static final char ATTR_41 = (COLOR_BG_RED << 8 & 0xff00) | 512 public static final char ATTR_41 = (COLOR_BG_RED << 8 & 0xff00) |
531 (COLOR_FG_BLACK & 0xff); 513 (COLOR_FG_BLACK & 0xff);
532 public static final char ATTR_42 = (COLOR_BG_BLACK << 8 & 0xff00) | 514 public static final char ATTR_42 = (COLOR_BG_BLACK << 8 & 0xff00) |
533 (COLOR_FG_RED & 0xff); 515 (COLOR_FG_RED & 0xff);
534 public static final char ATTR_43 = (COLOR_BG_RED << 8 & 0xff00) | 516 public static final char ATTR_43 = (COLOR_BG_RED << 8 & 0xff00) |
535 (COLOR_FG_BLACK & 0xff); 517 (COLOR_FG_BLACK & 0xff);
536 518
537 public static final char ATTR_44 = (COLOR_BG_BLACK << 8 & 0xff00) | 519 public static final char ATTR_44 = (COLOR_BG_BLACK << 8 & 0xff00) |
538 (COLOR_FG_RED & 0xff); 520 (COLOR_FG_RED & 0xff);
539 public static final char ATTR_45 = ( COLOR_BG_RED << 8 & 0xff00) | 521 public static final char ATTR_45 = (COLOR_BG_RED << 8 & 0xff00) |
540 ( COLOR_FG_BLACK & 0xff); 522 (COLOR_FG_BLACK & 0xff);
541 public static final char ATTR_46 = (COLOR_BG_BLACK << 8 & 0xff00) | 523 public static final char ATTR_46 = (COLOR_BG_BLACK << 8 & 0xff00) |
542 (COLOR_FG_RED & 0xff); 524 (COLOR_FG_RED & 0xff);
543 525
544 public static final char ATTR_48 = (COLOR_BG_BLACK << 8 & 0xff00) | 526 public static final char ATTR_48 = (COLOR_BG_BLACK << 8 & 0xff00) |
545 (COLOR_FG_CYAN & 0xff); 527 (COLOR_FG_CYAN & 0xff);
546 public static final char ATTR_49 = (COLOR_BG_CYAN << 8 & 0xff00) | 528 public static final char ATTR_49 = (COLOR_BG_CYAN << 8 & 0xff00) |
547 (COLOR_FG_BLACK & 0xff); 529 (COLOR_FG_BLACK & 0xff);
548 public static final char ATTR_50 = (COLOR_BG_BLACK << 8 & 0xff00) | 530 public static final char ATTR_50 = (COLOR_BG_BLACK << 8 & 0xff00) |
549 (COLOR_FG_YELLOW & 0xff); 531 (COLOR_FG_YELLOW & 0xff);
550 532
551 public static final char ATTR_51 = (COLOR_BG_YELLOW << 8 & 0xff00) | 533 public static final char ATTR_51 = (COLOR_BG_YELLOW << 8 & 0xff00) |
552 (COLOR_FG_BLACK & 0xff); 534 (COLOR_FG_BLACK & 0xff);
553 public static final char ATTR_52 = ( COLOR_BG_BLACK << 8 & 0xff00) | 535 public static final char ATTR_52 = (COLOR_BG_BLACK << 8 & 0xff00) |
554 ( COLOR_FG_CYAN & 0xff); 536 (COLOR_FG_CYAN & 0xff);
555 public static final char ATTR_53 = ( COLOR_BG_CYAN << 8 & 0xff00) | 537 public static final char ATTR_53 = (COLOR_BG_CYAN << 8 & 0xff00) |
556 ( COLOR_FG_BLACK & 0xff); 538 (COLOR_FG_BLACK & 0xff);
557 public static final char ATTR_54 = ( COLOR_BG_BLACK << 8 & 0xff00) | 539 public static final char ATTR_54 = (COLOR_BG_BLACK << 8 & 0xff00) |
558 ( COLOR_FG_YELLOW & 0xff); 540 (COLOR_FG_YELLOW & 0xff);
559 public static final char ATTR_56 = ( COLOR_BG_BLACK << 8 & 0xff00) | 541 public static final char ATTR_56 = (COLOR_BG_BLACK << 8 & 0xff00) |
560 ( COLOR_FG_MAGENTA & 0xff); 542 (COLOR_FG_MAGENTA & 0xff);
561 public static final char ATTR_57 = ( COLOR_BG_MAGENTA << 8 & 0xff00) | 543 public static final char ATTR_57 = (COLOR_BG_MAGENTA << 8 & 0xff00) |
562 ( COLOR_FG_BLACK & 0xff); 544 (COLOR_FG_BLACK & 0xff);
563 public static final char ATTR_58 = ( COLOR_BG_BLACK << 8 & 0xff00) | 545 public static final char ATTR_58 = (COLOR_BG_BLACK << 8 & 0xff00) |
564 ( COLOR_FG_BLUE & 0xff); 546 (COLOR_FG_BLUE & 0xff);
565 public static final char ATTR_59 = ( COLOR_BG_BLUE << 8 & 0xff00) | 547 public static final char ATTR_59 = (COLOR_BG_BLUE << 8 & 0xff00) |
566 ( COLOR_FG_BLACK & 0xff); 548 (COLOR_FG_BLACK & 0xff);
567 public static final char ATTR_60 = ( COLOR_BG_BLACK << 8 & 0xff00) | 549 public static final char ATTR_60 = (COLOR_BG_BLACK << 8 & 0xff00) |
568 ( COLOR_FG_MAGENTA & 0xff); 550 (COLOR_FG_MAGENTA & 0xff);
569 public static final char ATTR_61 = ( COLOR_BG_MAGENTA << 8 & 0xff00) | 551 public static final char ATTR_61 = (COLOR_BG_MAGENTA << 8 & 0xff00) |
570 ( COLOR_FG_BLACK & 0xff); 552 (COLOR_FG_BLACK & 0xff);
571 public static final char ATTR_62 = ( COLOR_BG_BLACK << 8 & 0xff00) | 553 public static final char ATTR_62 = (COLOR_BG_BLACK << 8 & 0xff00) |
572 ( COLOR_FG_BLUE & 0xff); 554 (COLOR_FG_BLUE & 0xff);
573 555
574 public static final int NO_GUI = 0; 556 public static final int NO_GUI = 0;
575 public static final int UPPER_LEFT = 1; 557 public static final int UPPER_LEFT = 1;
576 public static final int UPPER = 2; 558 public static final int UPPER = 2;
577 public static final int UPPER_RIGHT = 3; 559 public static final int UPPER_RIGHT = 3;
578 public static final int GUI_LEFT = 4; 560 public static final int GUI_LEFT = 4;
579 public static final int GUI_RIGHT = 5; 561 public static final int GUI_RIGHT = 5;
580 public static final int LOWER_LEFT = 6; 562 public static final int LOWER_LEFT = 6;
581 public static final int BOTTOM = 7; 563 public static final int BOTTOM = 7;
582 public static final int LOWER_RIGHT = 8; 564 public static final int LOWER_RIGHT = 8;
583 public static final int FIELD_LEFT = 9; 565 public static final int FIELD_LEFT = 9;
584 public static final int FIELD_RIGHT = 10; 566 public static final int FIELD_RIGHT = 10;
585 public static final int FIELD_MIDDLE = 11; 567 public static final int FIELD_MIDDLE = 11;
586 public static final int FIELD_ONE = 12; 568 public static final int FIELD_ONE = 12;
587 public static final int BUTTON_LEFT = 13; 569 public static final int BUTTON_LEFT = 13;
588 public static final int BUTTON_RIGHT = 14; 570 public static final int BUTTON_RIGHT = 14;
589 public static final int BUTTON_MIDDLE = 15; 571 public static final int BUTTON_MIDDLE = 15;
590 public static final int BUTTON_ONE = 16; 572 public static final int BUTTON_ONE = 16;
591 public static final int BUTTON_LEFT_UP = 17; 573 public static final int BUTTON_LEFT_UP = 17;
592 public static final int BUTTON_RIGHT_UP = 18; 574 public static final int BUTTON_RIGHT_UP = 18;
593 public static final int BUTTON_MIDDLE_UP = 19; 575 public static final int BUTTON_MIDDLE_UP = 19;
594 public static final int BUTTON_ONE_UP = 20; 576 public static final int BUTTON_ONE_UP = 20;
595 public static final int BUTTON_LEFT_DN = 21; 577 public static final int BUTTON_LEFT_DN = 21;
596 public static final int BUTTON_RIGHT_DN = 22; 578 public static final int BUTTON_RIGHT_DN = 22;
597 public static final int BUTTON_MIDDLE_DN = 23; 579 public static final int BUTTON_MIDDLE_DN = 23;
598 public static final int BUTTON_ONE_DN = 24; 580 public static final int BUTTON_ONE_DN = 24;
599 public static final int BUTTON_LEFT_EB = 25; 581 public static final int BUTTON_LEFT_EB = 25;
600 public static final int BUTTON_RIGHT_EB = 26; 582 public static final int BUTTON_RIGHT_EB = 26;
601 public static final int BUTTON_MIDDLE_EB = 27; 583 public static final int BUTTON_MIDDLE_EB = 27;
602 public static final int BUTTON_SB_UP = 28; 584 public static final int BUTTON_SB_UP = 28;
603 public static final int BUTTON_SB_DN = 29; 585 public static final int BUTTON_SB_DN = 29;
604 public static final int BUTTON_SB_GUIDE = 30; 586 public static final int BUTTON_SB_GUIDE = 30;
605 public static final int BUTTON_SB_THUMB = 31; 587 public static final int BUTTON_SB_THUMB = 31;
606 public static final int BUTTON_LAST = 31; 588 public static final int BUTTON_LAST = 31;
607 589
608 } 590 }