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: Mike Frysinger
Subject: Re: [Bug-readline] add control-arrow bindings
Date: Sun, 12 Mar 2017 23:05:48 -0400

On 10 Mar 2017 09:21, Chet Ramey wrote:
> On 3/10/17 9:06 AM, Per Bothner wrote:
> > Maybe you can conditionalize readline so the default binding bound to
> > backward-word
> > is opt-left on Mac and control-left otherwise.
> 
> That has been the default binding on Mac OS X forever.  (Well, indirectly.
> The default key sequence it puts out is ESC-b, which is the default
> binding for backward-word.)
> 
> You could probably get the control-arrow bindings to work as they do on
> some other systems if you disabled the system-wide virtual desktop actions,
> but few people will do that.
> 
> In any event, I'll add them as default bindings and we'll see how it goes.

fwiw, we've bound these in Gentoo for over 10 years.  i think Debian
has as well.

"\e[5C": forward-word
"\e[5D": backward-word
"\e[1;5C": forward-word
"\e[1;5D": backward-word
"\e\e[C": forward-word
"\e\e[D": backward-word

don't we have access to curses to look up key names based on the active term ?
-mike

Attachment: signature.asc
Description: Digital signature


reply via email to

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