diff --git a/src/main/java/myutil/Terminal.java b/src/main/java/myutil/Terminal.java
index 1dc16ab4acc5c2f9a94d72fe7bb0edf7b5e53de5..393606893144916bd5d813af0b0ad2288500747b 100644
--- a/src/main/java/myutil/Terminal.java
+++ b/src/main/java/myutil/Terminal.java
@@ -230,6 +230,7 @@ public class Terminal {
                        if (cursorPosition == currentBuf.length()) {
                            myPrint("" + x);
                            currentBuf += x;
+                           cursorPosition ++;
                        } else {
                            //System.out.println("Tricky cursor position");
                            int sep = currentBuf.length()- cursorPosition;
@@ -239,10 +240,9 @@ public class Terminal {
                            for(int i=0; i<sep; i++) {
                                backwardCode();
                            }
-                           cursorPosition --;
-
+                           TraceManager.addDev("buffer=" + currentBuf);
                        }
-                       cursorPosition ++;
+
                    }
                }