I accidentally hit the insert key so often that I put some code in my .emacs to disable the overwrite-mode key binding:
(define-key global-map [(insert)] nil) (define-key global-map [(control insert)] 'overwrite-mode)
This works fine when using emacs within X. However, when I run emacs in the terminal (with -nw or over ssh), insert still turns on overwrite mode.
How can I bind insert in a terminal?