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

Adding cli executable for TTool

parent 8fa0e036
Branches fix-avatar-guardElse
No related tags found
No related merge requests found
......@@ -188,12 +188,13 @@ public class Terminal {
// DEL
if ((sequence.charAt(0) == 91) && (sequence.charAt(1) == 51) &&
(sequence.charAt(2) == 126)) {
TraceManager.addDev("DEL");
currentBuf = del(currentBuf);
cursorPosition--;
sequence = null;
val = -1;
//TraceManager.addDev("DEL");
//
}
}
......@@ -285,7 +286,7 @@ public class Terminal {
private String del(String currentBuf) {
TraceManager.addDev("DEL");
//TraceManager.addDev("DEL");
if (cursorPosition > 0) {
if (currentBuf.length() > 0) {
if (cursorPosition == currentBuf.length()) {
......
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