I recently had help fixing M-left
and so forth here: emacs in terminal meta arrow keybindings, but am unable to fix Shift-up
using a similar solution. When I try shift-up
I get an error <select> is undefined
. I've tried re-mapping it using:
(add-hook 'term-setup-hook
'(lambda ()
(define-key function-key-map "\e[1;9A" [M-up])
(define-key function-key-map "\e[1;9B" [M-down])
(define-key function-key-map "\e[1;9C" [M-right])
(define-key function-key-map "\e[1;2A" [S-up])
(define-key function-key-map "\e[1;9D" [M-left])))
But shift remains undefined. I also tried rebinding the key by setting it using the escape sequence returned from cat
which is ^[[1;2A
. Oddly enough shift down does work. shift-select-mode
is marked at t
as well.