Debug.jl
Debug.jl copied to clipboard
Up/down arrows not working properly with command history
I'm running OS X with julia 0.2.0-2695.rc5cd44281 and testing the debug package.
Creating a source file with:
using Debug
@debug function f(a,b)
@bp
a + b
end
f(1,2)
and running inside a julia prompt with include("test.jl"), if I type a to see a's value and then an up arrow to traverse the command history, I get:
debug:4> ^[[A
down arrow produces:
debug:4> ^[[B
can anyone confirm if it's just me or this is a bug?
thanks, Cássio
Sorry for the delay. No, I get this too, and I'm not sure what to do about it. All I do is to readline(STDIN). I believe that @loladiro has a REPL written in Julia in the works; eventually that might be plugged in instead.
Maybe this has something to do with processing the control characters, as control-f, etc, also produce this behavior. This really hurts the usability of the debug package, as every time one needs to input whole expressions again. But I'm not sure how to solve this either.
I solved the issue by copying (ctrl-shift-c) and pasting prior lines in my terminal.
Not ideal but enough for now.