bug-readline
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Bug-readline] add control-arrow bindings


From: Chet Ramey
Subject: Re: [Bug-readline] add control-arrow bindings
Date: Fri, 10 Mar 2017 08:31:09 -0800
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.12; rv:45.0) Gecko/20100101 Thunderbird/45.7.1

On 3/8/17 3:52 PM, Per Bothner wrote:
> On 03/08/2017 03:35 PM, Chet Ramey wrote:
>> On 3/8/17 12:50 PM, Per Bothner wrote:
>>> I have the following in my ~/.inputrc, but I think they should be
>>> bound by default, just like the arrow keys:
>>>
>>> "\e[1;5C": forward-word
>>> "\e[1;5D": backward-word
>>> "\e[3;5~": kill-word
>>>
>>> These bind control-left-arrow, control-right-arrow, and control-delete
>>> to their "standard" keybindings.
>>
>> How standard are these escape sequences? I use Mac OS X, so obviously
>> they don't work at all for me.
> 
> They're very standard:
> https://en.wikipedia.org/wiki/Table_of_keyboard_shortcuts#Text_editing

OK.

> They might even work on Mac OS, though the modifier key needed might be
> different.

No, I tried all of these long ago.  There is basic consistency across
terminal emulators when using opt-arrow (control-arrow is a system key
binding that switches virtual desktops), and none of Terminal/iTerm/aterm
/xterm output any of those key sequences.

-- 
``The lyf so short, the craft so long to lerne.'' - Chaucer
                 ``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, UTech, CWRU    address@hidden    http://cnswww.cns.cwru.edu/~chet/



reply via email to

[Prev in Thread] Current Thread [Next in Thread]