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

use EOF (ctrl+d) to exit console instead of SIGINT (ctrl+c) #1690

Closed
b5 opened this issue Oct 20, 2023 · 0 comments · Fixed by #1691
Closed

use EOF (ctrl+d) to exit console instead of SIGINT (ctrl+c) #1690

b5 opened this issue Oct 20, 2023 · 0 comments · Fixed by #1691

Comments

@b5
Copy link
Member

b5 commented Oct 20, 2023

would anyone be able to ship me a PR that makes ctrl+D the way to exit the console instead of ctrl+C? (technically using EOF as the console kill signal instead of SIGINT)
I constantly leave my cozy home in the console by accidentally hitting ctrl+c & it kills my demo vibe.

this is the approach the python REPL uses & I love it:

$ python3
Python 3.11.4 (main, Jul 25 2023, 17:36:13) [Clang 14.0.3 (clang-1403.0.22.14.1)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>>
KeyboardInterrupt
>>> ^D

ctrl+c gives you some sort of feedback so you don't loose your mind, in this case KeyboardInterrupt.

dignifiedquire added a commit that referenced this issue Oct 20, 2023
github-merge-queue bot pushed a commit that referenced this issue Oct 20, 2023
Closes #1690

---------

Co-authored-by: Brendan O'Brien <sparkle_pony_2000@qri.io>
@b5 b5 closed this as completed in #1691 Oct 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

1 participant