papyrus icon indicating copy to clipboard operation
papyrus copied to clipboard

Control+D should terminate papyrus; maybe Control+C shouldn't

Open ctrlcctrlv opened this issue 3 years ago • 1 comments

Python's REPL interprets Control+C as a way to stop a run-away REPL command. It immediately breaks with the exception KeyboardInterrupt (which Python programs can indeed handle, but that's another story).

If done at the REPL, Python just prints "KeyboardInterrupt" and the REPL remains open.

You don't have to copy Python exactly, but most REPL's do quit on Control+D (EOF), as this allows scripts to use them, and also, since it's a frequent standard, users expect it.

Can Papyrus follow suit?

ctrlcctrlv avatar May 17 '21 02:05 ctrlcctrlv

This is also common in shells - Ctrl+D for exit. Current behavior of Papyrus is confusing.

jaskij avatar Dec 05 '21 18:12 jaskij