On Fri, Jul 10, 2009 at 09:16:44PM -0500, Phil Miller wrote:
> The apparently relevant bits of infocmp output for linux and xterm are, 
> respectively:
>                linux   xterm
>         kcub1: '\E[D', '\EOD'.
>         kcud1: '\E[B', '\EOB'.
>         kcuf1: '\E[C', '\EOC'.
>         kcuu1: '\E[A', '\EOA'.

No, that's not it.  Those are the arrow keys without Alt.  Try running
cat >/dev/null
and hitting the keys to better see what's being sent.

In my case in xterm, I get <Esc>[1;2D for Shift-Left, which corresponds to
kLFT=\E[1;2D
from infocmp
It's <Esc>[1;3D for Alt-Left, which does not appear to correspond to anything.

I do not know what this key combination is called in terminfo, and I do not
know what was being sent before that worked.

If we can match up the terminal emulator, terminfo, and zsh, we can do what you
want portably.  If not, you may have to just bind the keys for your particular
setup.

Do you see anything in the output of `man 5 terminfo` that sounds like Alt-Left?



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to