[Feature Request] add a new possible behavior for ctrl-c
I would like to add a new terminal window action, which would consist in:
- If the current selection is non-empty, ctrl-c copies it to the clipboard,
- otherwise, ctrl-c works as usual, interrupting the current running process.
This feature is called copy_or_interrupt
in Kitty Terminal.
I'm willing to implement it. It doesn't seem that hard since xfce4-terminal already gives the possibility to remap ctrl-c via accels.scm
. However, I don't find how interrupting with ctrl-c is done in the code base. How to do it?