Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
ctrlcctrlv opened this issue May 17, 2021 · 1 comment
Open

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

ctrlcctrlv opened this issue May 17, 2021 · 1 comment

Comments

@ctrlcctrlv
Copy link

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?

@jaskij
Copy link

jaskij commented Dec 5, 2021

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants