comparison src/com/five_ten_sg/connectbot/transport/TN5250.java @ 205:f86f1e37b504

add cursor request command to the TE
author Carl Byington <carl@five-ten-sg.com>
date Thu, 03 Jul 2014 08:46:25 -0700
parents 61a90cb1938d
children 561caa2f7c17
comparison
equal deleted inserted replaced
204:aab87298244f 205:f86f1e37b504
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 if (b == 120) {
185 // special case x for testing
186 setField(17, 44, new char[] { '1', '2' });
187 keyPressed(KEY_TAB, ' ', 0);
188 keyPressed(KEY_TAB, ' ', 0);
189 setField(-1, -1, new char[] { '3', '4' });
190 setField(18, 44, new char[0]);
191 setField(-1, -1, new char[] { '5', '6' });
192 return;
193 }
194 if (b == 121) {
195 // special case y for testing
196 setField(17, 43, new char[0]);
197 return;
198 }
199 if (b == 122) {
200 // special case z for testing
201 setField(17, 41, new char[0]);
202 return;
203 }
204 if (controls.containsKey(b)) keyPressed(controls.get(b), ' ', 0); 184 if (controls.containsKey(b)) keyPressed(controls.get(b), ' ', 0);
205 else screen52.sendKeys(new String(new byte[] {(byte)b})); 185 else screen52.sendKeys(new String(new byte[] {(byte)b}));
206 testChanged(); 186 testChanged();
207 } 187 }
208 @Override 188 @Override