[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Bug-readline] add control-arrow bindings
From: |
Per Bothner |
Subject: |
Re: [Bug-readline] add control-arrow bindings |
Date: |
Mon, 13 Mar 2017 10:19:56 -0700 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.7.0 |
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
address@hidden http://per.bothner.com/
- [Bug-readline] add control-arrow bindings, Per Bothner, 2017/03/08
- Re: [Bug-readline] add control-arrow bindings, Chet Ramey, 2017/03/08
- Re: [Bug-readline] add control-arrow bindings, Per Bothner, 2017/03/08
- Re: [Bug-readline] add control-arrow bindings, Chet Ramey, 2017/03/10
- Re: [Bug-readline] add control-arrow bindings, Per Bothner, 2017/03/10
- Re: [Bug-readline] add control-arrow bindings, Chet Ramey, 2017/03/10
- Re: [Bug-readline] add control-arrow bindings, Mike Frysinger, 2017/03/12
- Re: [Bug-readline] add control-arrow bindings, Chet Ramey, 2017/03/13
- Re: [Bug-readline] add control-arrow bindings,
Per Bothner <=
- Re: [Bug-readline] add control-arrow bindings, Mike Frysinger, 2017/03/13