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 [email protected] http://cnswww.cns.cwru.edu/~chet/
_______________________________________________
Bug-readline mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/bug-readline