You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Mar 2, 2025. It is now read-only.
In most REPL-style tools I use, Ctrl-D is the binding used to exit the program, while Ctrl-C "resets" the prompt. There is some variety with Ctrl-C's behavior if the current input is empty (on the shells that I tried, it just starts a new prompt, but with e.g. Qalculate it exits the program), yet with everything I tried, Ctrl-C starts a new, empty line if there is existing input. Insect is the only program I am aware of that flies in the face of this convention and always exits when Ctrl-C is pressed, and I think keeping it like this is a mistake.
A question arises if we decide to do this, however: when there is no input, should Ctrl-C exit Insect (like Qalculate does), or should it simply start a new line (like basically all of the shells I tried)?
Thoughts?
The text was updated successfully, but these errors were encountered:
triallax
changed the title
[terminal version] Ctrl-C should "reset" input, not terminate insect
[cli] Ctrl-C should "reset" input, not terminate insect
Mar 19, 2023
triallax
changed the title
[cli] Ctrl-C should "reset" input, not terminate insect
[cli] Change unconventional behavior of Ctrl-C
Mar 19, 2023
always exits when Ctrl-C is pressed, and I think keeping it like this is a mistake.
I wonder if it has always been like this, or if it was caused by the readline dependency switch. Anyway, I fully agree that this should be changed.
A question arises if we decide to do this, however: when there is no input, should Ctrl-C exit Insect (like Qalculate does), or should it simply start a new line (like basically all of the shells I tried)?
In most REPL-style tools I use, Ctrl-D is the binding used to exit the program, while Ctrl-C "resets" the prompt. There is some variety with Ctrl-C's behavior if the current input is empty (on the shells that I tried, it just starts a new prompt, but with e.g. Qalculate it exits the program), yet with everything I tried, Ctrl-C starts a new, empty line if there is existing input. Insect is the only program I am aware of that flies in the face of this convention and always exits when Ctrl-C is pressed, and I think keeping it like this is a mistake.
A question arises if we decide to do this, however: when there is no input, should Ctrl-C exit Insect (like Qalculate does), or should it simply start a new line (like basically all of the shells I tried)?
Thoughts?
The text was updated successfully, but these errors were encountered: