On 03/13/2017 08:41 AM, Chet Ramey wrote:
What key combinations output these sequences?
"\e[5C": forward-word
"\e[5D": backward-word
My guess it depends on "Application Cursor Keys (DECCKM)" mode.
Xterm doesn't generate this sequence (based on my experimentation): it sends the
same sequence for ctrl-leftarrow, r egardless of this mode, though it
sends difference sequences for plain leftarrow.
However, other terminals or terminal emulators might do this slightly
differently (it's pretty messy).
"\e\e[C": forward-word
"\e\e[D": backward-word
That's just escape followed by rightarrow or leftarrow.
I don't know why anyone would ever type that, but there
might be a terminal emulator setting that converts ctrl-KEY
to escape+KEY. Plus it makes things more consistent.
--
--Per Bothner
[email protected] http://per.bothner.com/
_______________________________________________
Bug-readline mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/bug-readline