Ammended tab handling.
authorTim Vaughan <tgvaughan@gmail.com>
Tue, 5 Jul 2016 20:44:38 +0000 (22:44 +0200)
committerTim Vaughan <tgvaughan@gmail.com>
Tue, 5 Jul 2016 20:44:38 +0000 (22:44 +0200)
src/forth.jl

index dd808bb..9df99d0 100644 (file)
@@ -648,12 +648,7 @@ function getLineFromSTDIN()
 
         elseif key == '\b'
             if !isempty(line)
-                if line[length(line)] == '\t'
-                    print(string("\r\033[K",line[1:length(line)-1]))
-                else
-                    print("\b\033[K")
-                end
-
+                print("\b\033[K")
                 line = line[1:length(line)-1]
             end
 
@@ -669,6 +664,9 @@ function getLineFromSTDIN()
                 end
             end
 
+        elseif key == '\t'
+            # Currently do nothing
+
         else
             print(key)
             line = string(line, key)