bash remapping ctrl+c
hey,
I have been looking around for a way to remap ctrl+c (intr command). I came across the command stty intr ^[alphakey]. So I tried using stty intr ^I to remap it from ctrl+c to ctrl+i.
The only problem with this is that it also changed my tab key. Every time i press tab, i get the intr key press (ie it is like i pressed ctrl+I).
I am a windows user normally and I use ctrl+c to copy. I absolutely hate it when i try to copy something out of a terminal window and it kills my process because i used ctrl + c. I could care less about remapping the copy command, I just want to find a way to remap the intr command to some other key.
I did come across something that mentioned inputrc, but I couldn't figure out how to use it correctly.
I am pretty new to linux, so it would be helpful if you spelled out any help you can provide.
Thanks
|