comparison src/com/five_ten_sg/connectbot/transport/TN5250.java @ 209:53f66625d618

more testing on cursor movement
author Carl Byington <carl@five-ten-sg.com>
date Thu, 03 Jul 2014 19:54:05 -0700
parents 561caa2f7c17
children 4ecd8a39afb3
comparison
equal deleted inserted replaced
208:561caa2f7c17 209:53f66625d618
179 screen52.sendKeys(new String(b)); 179 screen52.sendKeys(new String(b));
180 testChanged(); 180 testChanged();
181 } 181 }
182 @Override 182 @Override
183 public void write(int b) { 183 public void write(int b) {
184 /*
184 if (b == 120) { 185 if (b == 120) {
185 // special case x for testing 186 // special case x for testing
186 setField(17, 40, new char[] { '1', '2' }); 187 setField(17, 40, new char[] { '1', '2' });
187 setField(17, 44, new char[0]); 188 setField(17, 44, new char[0]);
188 setField(-1, -1, new char[] { '3', '4' }); 189 setField(-1, -1, new char[] { '3', '4' });
198 if (b == 122) { 199 if (b == 122) {
199 // special case z for testing 200 // special case z for testing
200 setField(17, 41, new char[0]); 201 setField(17, 41, new char[0]);
201 return; 202 return;
202 } 203 }
204 */
203 if (controls.containsKey(b)) keyPressed(controls.get(b), ' ', 0); 205 if (controls.containsKey(b)) keyPressed(controls.get(b), ' ', 0);
204 else screen52.sendKeys(new String(new byte[] {(byte)b})); 206 else screen52.sendKeys(new String(new byte[] {(byte)b}));
205 testChanged(); 207 testChanged();
206 } 208 }
207 @Override 209 @Override