Rebind SIGINT when copy is bound to ctrl+c
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Terminator |
Fix Released
|
Low
|
Unassigned |
Bug Description
In guake (drop down terminal), if you bind copy to ctrl+c (instead of ctrl+shift+c), SIGINT will be swapped. Hence, SIGINT will then be bound to ctrl+shift+c. I imagine that this is processed before bash itself, and guake sends a literal ctrl+c when ctrl+shift+c is pressed.
It would be fantastic if terminator could also do this. I appreciate that I could modify this from within bash itself using stty, but making the terminal emulator do it is useful for consistency when sshing, etc.
Bug 340604 is related, where copy can be bound to ctrl+c, but SIGINT can still be sent with the same keycode when no text is selected. I feel that guake's implementation is cleaner, and (for example) allows SIGINT with text selected.
==EDIT==
This bug is so old I can't exactly remember what I was complaining about! Anyway, one can now bind copy to ctrl+c, which is great. SIGINT can then be sent with crtl+shift+c. If text is selected, ctrl+c copies. However, if there is no text selected, ctrl+c still sends SIGINT. It would be better to totally rebind SIGINT so that it is *never* sent with ctrl+c, no matter what is selected.
Related branches
Changed in terminator: | |
status: | New → Incomplete |
tags: | added: confirmed-0.98 confirmed-gtk3 |
Changed in terminator: | |
status: | Incomplete → Confirmed |
description: | updated |
Changed in terminator: | |
status: | Confirmed → Triaged |
Changed in terminator: | |
status: | Fix Committed → Fix Released |
Please can this be made to work? Trying to bind ctrl-c to copy actually breaks the keybinding - afterwards the copy command can be set to any binding but it always becomes disabled as soon as I leave the dialog. I had to edit ~/.config/ terminator/ config and remove the bindings to get back to ctrl-shift-c for copy.
Since ctrl-c breaks out of programs and is a irreversible operation, I'd much prefer to use more modifier keys to trigger it, and doing so would also make the terminal consistent with every other program. It's a continual pain to ctrl-c in a browser and then have to ctrl-shift-v in terminal, and do the reverse dance to paste from the terminal into the browser.