Make all line discipline key bindings configurable (unbind/rebind Ctrl-C, etc.) #20165

Open
opened 2026-01-31 07:05:33 +00:00 by claunia · 1 comment
Owner

Originally created by @lhecker on GitHub (Jun 28, 2023).

Description of the new feature/enhancement

Some people don't like Ctrl-C, etc., and would like to have such keybindings be configurable and use macro keys, or similar instead. It's possible to do so and would clean up and centralize lots of our hardcoded assumptions.

Proposed technical implementation details (optional)

TBD. TerminalInput has them hardcoded right now, which would need to be configurable. Ctrl-C and more are handled in many more parts throughout OpenConsole and Windows Terminal which would all need to be centralized.

Originally created by @lhecker on GitHub (Jun 28, 2023). # Description of the new feature/enhancement Some people don't like Ctrl-C, etc., and would like to have such keybindings be configurable and use macro keys, or similar instead. It's possible to do so and would clean up and centralize lots of our hardcoded assumptions. # Proposed technical implementation details (optional) TBD. [TerminalInput](https://github.com/microsoft/terminal/blob/0f41851e67614dd3f78d399f91d4636087c3179c/src/terminal/input/terminalInput.cpp) has them hardcoded right now, which would need to be configurable. Ctrl-C and more are handled in many more parts throughout OpenConsole and Windows Terminal which would all need to be centralized.
claunia added the Product-ConhostIssue-TaskArea-InputProduct-Terminal labels 2026-01-31 07:05:33 +00:00
Author
Owner

@DHowett commented on GitHub (Jun 30, 2023):

This would also require some work on cooked read, since if we're going to make ldisc stuff re-bindable (like stty intr, stty eof do) we might as well also make all the cooked read popup keyboard shortcuts rebindable.

@DHowett commented on GitHub (Jun 30, 2023): This would also require some work on cooked read, since if we're going to make ldisc stuff re-bindable (like `stty intr`, `stty eof` do) we might as well also make all the cooked read popup keyboard shortcuts rebindable.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#20165