Skip to content
Snippets Groups Projects
Commit 0f405414 authored by Ludovic Apvrille's avatar Ludovic Apvrille
Browse files

Test on DEL

parent 9c201503
No related branches found
No related tags found
No related merge requests found
...@@ -235,12 +235,13 @@ public class Terminal { ...@@ -235,12 +235,13 @@ public class Terminal {
//System.out.println("Tricky cursor position"); //System.out.println("Tricky cursor position");
int sep = currentBuf.length()- cursorPosition; int sep = currentBuf.length()- cursorPosition;
currentBuf = currentBuf.substring(0,cursorPosition-1) + x + currentBuf.substring(cursorPosition, currentBuf.length()); currentBuf = currentBuf.substring(0,cursorPosition-1) + x + currentBuf.substring(cursorPosition, currentBuf.length());
TraceManager.addDev("buffer=" + currentBuf);
myPrint("" + x + currentBuf.substring(cursorPosition, currentBuf.length())); myPrint("" + x + currentBuf.substring(cursorPosition, currentBuf.length()));
// Must move cursor to previous psition + 1 // Must move cursor to previous psition + 1
for(int i=0; i<sep; i++) { for(int i=0; i<sep; i++) {
backwardCode(); backwardCode();
} }
TraceManager.addDev("buffer=" + currentBuf); //TraceManager.addDev("buffer=" + currentBuf);
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment