The Lambda Lab
/
projects
/
forth.jl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c564df1
)
Ammended tab handling.
author
Tim Vaughan
<tgvaughan@gmail.com>
Tue, 5 Jul 2016 20:44:38 +0000
(22:44 +0200)
committer
Tim Vaughan
<tgvaughan@gmail.com>
Tue, 5 Jul 2016 20:44:38 +0000
(22:44 +0200)
src/forth.jl
patch
|
blob
|
history
diff --git
a/src/forth.jl
b/src/forth.jl
index
dd808bb
..
9df99d0
100644
(file)
--- 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)