Ctrl+C does not work in gnome-terminal
Try to do this
$ stty sane
and see if it fixes the problem, also check if the intr is set correctly using
$ stty -a
If you find that intr
is set to something different than ^C, then you can also fix it by typing
$ stty intr ^v^c
Since it looks like a broken gnome-terminal
configuration, you can try letting it restore the defaults using
mv .gconf/apps/gnome-terminal{,-BROKEN}
(You'll need to re-start the terminal to see the effects.)
If everything is fine after that, do a rm -rf .gconf/apps/gnome-terminal-BROKEN
.
The default settings in gnome-terminal
binds the Ctrl-C
and Ctrl-V
keys to emulate the copy-and-paste behaviour of Windows. It was meant to be a feature not a bug :)
To disable this, at the gnome-terminal,
- navigate to
Menubar -> Edit -> Keyboard Shortcuts
- click on the Ctrl+C in the Shortcut Key column until you see
New Accelerator...
. - press the Backspace or Delete key to disable the key binding
- verify that
Disabled
now appear in the Shortcut Key column.
Note that this change will be immediately effective on all gnome-terminals.
Tip: gnome-terminal --show-menubar
will force gnome-terminal to show the Menubar if it is not shown.