Is it possible to set up Konsole so that CTRL-C functions as copy when text is selected and as interrupt when no text is selected?
if you don’t want to use the clipboard then simply highlighting text loads it into the paste buffer, and you can paste it with the middle mouse button.
i’ve setup copy and paste to be just F4 and F5, respectively and don’t use ctrl-c at all in konsole.
i have the same clipboard options in kate.
Standard shortcuts is CTRL+SHIFT+C, i.e. the normal GUI shortcut with additional SHIFT modifier.
Which for paste incidentally is the same as “paste without formatting” in GUI apps, so that fits nicely in a terminal
I wanted to see if I could make the behaviour exactly the same as a cmd prompt in Windows, but sounds like it isn’t possible (at least for copy).
There are several terminal apps around, maybe some other implements this
I decided to use CTRL-PAUSE (ie. break) for interrupt. My ~/.local/share/kxmlgui5/konsole/sessionui.rc has these shortcuts:
<ActionProperties scheme="Default">
<Action name="sigint-signal" shortcut="Ctrl+Pause; Ctrl+Shift+C"/>
<Action name="edit_paste" shortcut="Ctrl+V; Shift+Ins"/>
<Action name="edit_copy" shortcut="Ctrl+C"/>
</ActionProperties>
I took a different root to a solution.
I use intr = ^Y; lnext = ^B then configure konsole to use ^C for copy and ^V for paste.
Historic detail: Ctrl-Y was the interrupt key for DEC’s VAX.