JunoLab / Juno.jl

MIT License
144 stars 23 forks source link

[BUG] REPL exit when pressing Ctrl-\ #537

Open knuesel opened 4 years ago

knuesel commented 4 years ago

Details

Steps to reproduce

  1. Start a long-running call in the Juno REPL, for example sleep(10)
  2. Press Ctrl-\

This sends SIGQUIT to the Julia process, resulting in Julia exiting:

julia> sleep(5)
^\
signal (3): Quit
in expression starting at none:0
pthread_cond_wait at /lib/x86_64-linux-gnu/libpthread.so.0 (unknown line)
uv_cond_wait at /workspace/srcdir/libuv/src/unix/thread.c:827
...
Julia has exited.
Press Enter to start a new session.

This might not be a bug technically as it is the expected behavior in a regular terminal. But in Atom Ctrl-\ is used to toggle the tree view, so it is likely to surprise and annoy Juno users.

This can be fixed by adding "Ctrl-\\" to whitelistedKeybindingsREPL.