comparison src/com/five_ten_sg/connectbot/transport/TN5250.java @ 151:026f5b85bd63

more setfield testing
author Carl Byington <carl@five-ten-sg.com>
date Mon, 23 Jun 2014 08:34:50 -0700
parents 83bb2734b14c
children be91eb9743fc
comparison
equal deleted inserted replaced
150:83bb2734b14c 151:026f5b85bd63
125 mnemonics.put(KEY_NUMPAD7 , "7"); 125 mnemonics.put(KEY_NUMPAD7 , "7");
126 mnemonics.put(KEY_NUMPAD8 , "8"); 126 mnemonics.put(KEY_NUMPAD8 , "8");
127 mnemonics.put(KEY_NUMPAD9 , "9"); 127 mnemonics.put(KEY_NUMPAD9 , "9");
128 mnemonics.put(KEY_DECIMAL , "."); 128 mnemonics.put(KEY_DECIMAL , ".");
129 mnemonics.put(KEY_ADD , "+"); 129 mnemonics.put(KEY_ADD , "+");
130 mnemonics.put(KEY_ESCAPE , ""); 130 mnemonics.put(KEY_ESCAPE , "[reset]");
131 mnemonics.put(KEY_TAB , "[tab]"); 131 mnemonics.put(KEY_TAB , "[tab]");
132 } 132 }
133 133
134 @Override 134 @Override
135 public void debug(String s) { 135 public void debug(String s) {
177 return; 177 return;
178 } 178 }
179 if (b == 122) { 179 if (b == 122) {
180 // special case z for testing 180 // special case z for testing
181 setField(17, 40, new char[0]); 181 setField(17, 40, new char[0]);
182 return;
182 } 183 }
183 if (controls.containsKey(b)) keyPressed(controls.get(b), ' ', 0); 184 if (controls.containsKey(b)) keyPressed(controls.get(b), ' ', 0);
184 else screen52.sendKeys(new String(new byte[] {(byte)b})); 185 else screen52.sendKeys(new String(new byte[] {(byte)b}));
185 } 186 }
186 @Override 187 @Override