33 ms·
> Either way, you want to generally avoid C-c for copy in terminals because it's already bound to the all important "send sigterm signal to foreground process"
by 1996 6y ago
> Either way, you want to generally avoid C-c for copy in terminals because it's already bound to the all important "send sigterm signal to foreground process". This is on a long list of ancient cruft that exists in terminal emulators and shells.
stty intr ^X
Then ctrl-c will no longer bother you, and your muscle memory will quickly adapt as X is very close to C
- 1_player 6y agoMuscle memory doesn't help with "not quite what I'm used to, but it's very close". It doesn't handle conditional statements.
- pmontra 6y agoI mapped intr to control g some 30 years ago. It's the interrupt key in emacs. I gave up after some months because I still had to use control c on any terminal that I didn't control. By the way, I don't even know if I could paste with control c or control shift c back then. Maybe there was only middle click. I could try again now and see what happens.
- michaelmrose 6y agoI didn't know you could do this before this thread this is a great idea.