comparison src/com/five_ten_sg/connectbot/transport/TN5250.java @ 185:c51bcf9f0516

setfield positions the cursor properly as if the characters were typed
author Carl Byington <carl@five-ten-sg.com>
date Wed, 02 Jul 2014 14:46:16 -0700
parents cdaaa53b5eca
children 61a90cb1938d
comparison
equal deleted inserted replaced
184:cdaaa53b5eca 185:c51bcf9f0516
202 setField(-1, -1, new char[] { '6', '5' }); 202 setField(-1, -1, new char[] { '6', '5' });
203 return; 203 return;
204 } 204 }
205 if (b == 122) { 205 if (b == 122) {
206 // special case z for testing 206 // special case z for testing
207 setField(17, 40, new char[0]); 207 setField(17, 41, new char[0]);
208 return; 208 return;
209 } 209 }
210 if (controls.containsKey(b)) keyPressed(controls.get(b), ' ', 0); 210 if (controls.containsKey(b)) keyPressed(controls.get(b), ' ', 0);
211 else screen52.sendKeys(new String(new byte[] {(byte)b})); 211 else screen52.sendKeys(new String(new byte[] {(byte)b}));
212 testChanged(); 212 testChanged();