From 9d73d5b147b5d39fb92ea8c05e379becda61b0a2 Mon Sep 17 00:00:00 2001 From: Imanol-Mikel Barba Sabariego Date: Thu, 19 Sep 2013 13:23:30 +0000 Subject: [PATCH] git-svn-id: svn://imanolbarba.net/PAD@8 c2ee353e-ed0d-4329-bf56-03aec153487f --- readline/bin/pad/prac1/EditableBufferedReader.class | Bin 4763 -> 0 bytes readline/src/pad/prac1/EditableBufferedReader.java | 6 +++--- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/readline/bin/pad/prac1/EditableBufferedReader.class b/readline/bin/pad/prac1/EditableBufferedReader.class index 23839e5..92d45c1 100644 Binary files a/readline/bin/pad/prac1/EditableBufferedReader.class and b/readline/bin/pad/prac1/EditableBufferedReader.class differ diff --git a/readline/src/pad/prac1/EditableBufferedReader.java b/readline/src/pad/prac1/EditableBufferedReader.java index 0e7eff4..aacdf63 100644 --- a/readline/src/pad/prac1/EditableBufferedReader.java +++ b/readline/src/pad/prac1/EditableBufferedReader.java @@ -161,7 +161,7 @@ public class EditableBufferedReader extends BufferedReader { System.out.print((char)ESC); System.out.print((char)ESC_SEQ); - System.out.print((char)(NUM_0+pos-line.getCursorPosition())); + System.out.print(Integer.toString(pos-line.getCursorPosition())); System.out.print((char)FORWARD); } @@ -169,7 +169,7 @@ public class EditableBufferedReader extends BufferedReader { System.out.print((char)ESC); System.out.print((char)ESC_SEQ); - System.out.print((char)(NUM_0-pos+line.getCursorPosition())); + System.out.print(Integer.toString(line.getCursorPosition()-pos)); System.out.print((char)BACKWARD); } line.setCursorPosition(pos); @@ -197,7 +197,7 @@ public class EditableBufferedReader extends BufferedReader try { int character = read(); - System.err.print(Integer.toHexString(character) + " \n"); + //System.err.print(Integer.toHexString(character) + " \n"); switch(parseKey(character)) { case ESCAPE_SEQUENCE: -- libgit2 0.22.2