Debug.jl icon indicating copy to clipboard operation
Debug.jl copied to clipboard

Up/down arrows not working properly with command history

Open cmmp opened this issue 12 years ago • 4 comments

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

cmmp avatar Jul 21 '13 22:07 cmmp

can anyone confirm if it's just me or this is a bug?

thanks, Cássio

cmmp avatar Jul 28 '13 00:07 cmmp

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.

toivoh avatar Jul 28 '13 13:07 toivoh

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.

cmmp avatar Jul 28 '13 17:07 cmmp

I solved the issue by copying (ctrl-shift-c) and pasting prior lines in my terminal.

Not ideal but enough for now.

john9631 avatar Nov 09 '13 19:11 john9631