On 03/10/2017 08:31 AM, Chet Ramey wrote:
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.
What key sequences does opt-left emit? Is it some variation of "\e[1;MD"
for some value of "M"?
Maybe you can conditionalize readline so the default binding bound to
backward-word
is opt-left on Mac and control-left otherwise.
--
--Per Bothner
[email protected] http://per.bothner.com/
_______________________________________________
Bug-readline mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/bug-readline