From: Tim Vaughan Date: Tue, 5 Jul 2016 20:44:38 +0000 (+0200) Subject: Ammended tab handling. X-Git-Url: https://thelambdalab.xyz/gitweb/index.cgi?a=commitdiff_plain;h=69aba7543145b983179ba7998d06a6459cc28a1a;p=forth.jl.git Ammended tab handling. --- diff --git a/src/forth.jl b/src/forth.jl index dd808bb..9df99d0 100644 --- a/src/forth.jl +++ b/src/forth.jl @@ -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)