I am using org-mode in emacs in the terminal and the Shift and Alt cursor combinations are entered as characters like 2A, 2B, 3A etc. I notice that vim and the terminal also display such behaviour.Are there some terminal settings that can be set to change this behaviour, or is it settings in emacs and vim themselves?Following up on Gilles advice:The terminal emulator is KDE Konsole. On account of some advice given I went into the Settings->Configure Shortcuts menu and disabled the use of Shift+Left and Shift+Right for the Previous Tab and Next Tab options.EmacsShift+Left -> ^[2DShift+Right -> ^[2DAlt+Left -> ^[3DAlt+Right -> ^[3CVim Shift+Left -> ^[[1;2DShift+Right -> ^[[1;2CAlt+Left -> ^[[1;3DAlt+Right -> ^[[1;3C
How can emacs be configured to accept Shift and Alt cursor combinations properly?
terminal;keyboard shortcuts;emacs
After following Gilles's advice in his comment on the question and some more web searches I came across this link https://github.com/bendikro/emacs-conf/blob/master/emacs-conf/key-bindings.el with some sections define the keys appropriately. ;; ;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;; Fix for screen / tmux;; some snipped code;; Fix ALT + arrow keys inside screen/tmux(define-key input-decode-map \e[1;3A [M-up])(define-key input-decode-map \e[1;3B [M-down])(define-key input-decode-map \e[1;3C [M-right])(define-key input-decode-map \e[1;3D [M-left])I copied and adapted it for Shift as well and it seems to be working okay now.