Mercurial > 510Connectbot
comparison src/com/five_ten_sg/connectbot/transport/TN5250.java @ 208:561caa2f7c17
more testing on cursor movement
author | Carl Byington <carl@five-ten-sg.com> |
---|---|
date | Thu, 03 Jul 2014 19:34:07 -0700 |
parents | f86f1e37b504 |
children | 53f66625d618 |
comparison
equal
deleted
inserted
replaced
207:2c5c90e53c33 | 208:561caa2f7c17 |
---|---|
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, 40, new char[] { '1', '2' }); | |
187 setField(17, 44, new char[0]); | |
188 setField(-1, -1, new char[] { '3', '4' }); | |
189 setField(18, 40, new char[0]); | |
190 setField(-1, -1, new char[] { '5', '6' }); | |
191 return; | |
192 } | |
193 if (b == 121) { | |
194 // special case y for testing | |
195 setField(17, 43, new char[0]); | |
196 return; | |
197 } | |
198 if (b == 122) { | |
199 // special case z for testing | |
200 setField(17, 41, new char[0]); | |
201 return; | |
202 } | |
184 if (controls.containsKey(b)) keyPressed(controls.get(b), ' ', 0); | 203 if (controls.containsKey(b)) keyPressed(controls.get(b), ' ', 0); |
185 else screen52.sendKeys(new String(new byte[] {(byte)b})); | 204 else screen52.sendKeys(new String(new byte[] {(byte)b})); |
186 testChanged(); | 205 testChanged(); |
187 } | 206 } |
188 @Override | 207 @Override |