[GH-ISSUE #497] Ctrl-C exits interactive mode #129

Closed
opened 2026-05-07 00:19:16 +02:00 by BreizhHardware · 1 comment

Originally created by @wornet-aer on GitHub (Sep 30, 2024).
Original GitHub issue: https://github.com/ovh/the-bastion/issues/497

When using the interactive mode the help states:
- exit Quit the interactive mode, 'quit' and ^D can be used instead.

However in my installation, it also quits the current ssh session to the-bastion. Usually ^C only interrupts the current process and doesn't exit the whole session. So I would expect the-bastion's interactive shell to just return to an empty input line within the interactive mode after pressing Ctrl-C.

If this behaviour is explicitly wanted, please add ^C to the help, so that others will be warned. ;-)

Originally created by @wornet-aer on GitHub (Sep 30, 2024). Original GitHub issue: https://github.com/ovh/the-bastion/issues/497 When using the interactive mode the help states: `- exit Quit the interactive mode, 'quit' and ^D can be used instead.` However in my installation, it also quits the current ssh session to the-bastion. Usually ^C only interrupts the current process and doesn't exit the whole session. So I would expect the-bastion's interactive shell to just return to an empty input line within the interactive mode after pressing Ctrl-C. If this behaviour is explicitly wanted, please add ^C to the help, so that others will be warned. ;-)
Author
Owner

@speed47 commented on GitHub (Oct 16, 2024):

Thanks for the report, indeed having CTRL+C "cancelling" the current prompt and not exiting is more interesting than having it exit the interactive mode, thanks for the implicit suggestion ;)

<!-- gh-comment-id:2416621079 --> @speed47 commented on GitHub (Oct 16, 2024): Thanks for the report, indeed having CTRL+C "cancelling" the current prompt and not exiting is more interesting than having it exit the interactive mode, thanks for the implicit suggestion ;)
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/the-bastion#129
No description provided.