Closed StefanKarpinski closed 10 years ago
Can you try adding
'\n' => '\r',
in Readline.jl after line 802 and tell me if that fixes it.
It does not. Note that I have it setup so that one of enter
or alt-enter
sends \n
while the other sends \r
but neither one works – they both produce a space. Any more helpful debugging I can do? Maybe a println somewhere that will show what character the library is getting?
Oh, some interesting behaviors:
If you want, I can ssh to julia.mit.edu and allow you to tunnel to log into my machine.
If you want to do that, just send me an SSH public key over email and I'll add you to the authorized keys file.
Hitting enter does produce a new line for me in the terminal.
I confirm the buggy behaviour reported by Stefan in every detail, and I'm on linux using gnome-terminal.
I'm able to reproduce now. Working on a fix.
Fixed in Readline.jl
I just did a Pkg.update and now when I input an incomplete expression (e.g. for i=1:3
) and press enter it just takes the line:
julia> for i=1:3
ERROR: syntax: incomplete: premature end of input
Also, ctrl-enter does not work (has the same effect as enter). Still on linux 64bit, gnome-terminal.
Fixed.
Instead it advances the cursor a single space. I'm using iTerm2 but the same thing happens in Terminal; I'm not sure if I have weird key bindings (I do have things setup so that
enter
andalt-enter
behave differently).