diff --git a/src/main/java/myutil/Terminal.java b/src/main/java/myutil/Terminal.java index 19f15f4f6be9376eed89e0b695901ae9ff4f71c3..1cfe89f4904951ee9b78575b794146fd0a054b9b 100644 --- a/src/main/java/myutil/Terminal.java +++ b/src/main/java/myutil/Terminal.java @@ -234,8 +234,8 @@ public class Terminal { } else { //System.out.println("Tricky cursor position"); int sep = currentBuf.length()- cursorPosition; - currentBuf = currentBuf.substring(0,cursorPosition-1) + x + currentBuf.substring(cursorPosition, currentBuf.length()); - TraceManager.addDev("buffer=" + currentBuf); + currentBuf = currentBuf.substring(0,cursorPosition) + x + currentBuf.substring(cursorPosition, currentBuf.length()); + //TraceManager.addDev("buffer=" + currentBuf); myPrint("" + x + currentBuf.substring(cursorPosition, currentBuf.length())); // Must move cursor to previous psition + 1 for(int i=0; i<sep; i++) {