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.
Emacs
Shift+Left -> ^[2D
Shift+Right -> ^[2D
Alt+Left -> ^[3D
Alt+Right -> ^[3C
Vim
Shift+Left -> ^[[1;2D
Shift+Right -> ^[[1;2C
Alt+Left -> ^[[1;3D
Alt+Right -> ^[[1;3C
Ctrl+V
thenShift+Left
in Vim insert mode, orCtrl+Q
thenShift+Left
in Emacs. What is inserted? Same question withAlt+Left
. What terminal emulator are you using, on what distribution? – Gilles 'SO- stop being evil' Jul 6 '17 at 23:42TERM
, which we're assuming is "xterm". That won't change what konsole sends, but affects the applications running in konsole. – Thomas Dickey Jul 9 '17 at 15:49