Commit 030247da74b7c930706985c0700b6f4b6b9eaeff
1 parent
a6257bf9
HOME/END bug
git-svn-id: svn://imanolbarba.net/PAD@7 c2ee353e-ed0d-4329-bf56-03aec153487f
Showing
1 changed file
with
2 additions
and
2 deletions
readline/src/pad/prac1/EditableBufferedReader.java
... | ... | @@ -98,7 +98,7 @@ public class EditableBufferedReader extends BufferedReader |
98 | 98 | if(line.getCursorPosition() != line.length()+1) |
99 | 99 | { |
100 | 100 | insertSpace(); |
101 | - } | |
101 | + } | |
102 | 102 | System.out.print(c); |
103 | 103 | line.insertCharAt(c, line.getCursorPosition()-1); |
104 | 104 | line.setCursorPosition(line.getCursorPosition()+1); |
... | ... | @@ -197,6 +197,7 @@ public class EditableBufferedReader extends BufferedReader |
197 | 197 | try |
198 | 198 | { |
199 | 199 | int character = read(); |
200 | + System.err.print(Integer.toHexString(character) + " \n"); | |
200 | 201 | switch(parseKey(character)) |
201 | 202 | { |
202 | 203 | case ESCAPE_SEQUENCE: |
... | ... | @@ -266,7 +267,6 @@ public class EditableBufferedReader extends BufferedReader |
266 | 267 | //ignore |
267 | 268 | break; |
268 | 269 | } |
269 | - | |
270 | 270 | } |
271 | 271 | catch (IOException e) |
272 | 272 | { | ... | ... |