On 2014-05-08 07:20 +0100, Nicholas Marriott wrote: > If they are some other modifier not included in the xterm 1-8 set, then > we don't want to convert \033[1;9A into Up if it's not actually Up but > actually Weird-Apple-Only-Key+Up.
Actually the bit 0x08 means "meta" in xterm and apparently iTerm2 totally doesn't support the "alt" key (bit 0x02) at all, only meta! I managed to reproduce the problem in xterm. My current keyboard config uses the same keys for alt and meta so xterm ignores the latter. But when you disable alt, you can see the difference. Try this: $ xmodmap -e 'clear mod1' -e 'add mod1 = Meta_L' -e 'keycode 64 = Meta_L' This will map the left alt to meta. Start xterm *after* issuing the above command, start cat and press left_alt+right, and you'll see "^[[1;9C" as output (although this may depend on some other settings well, but might just work for you). If press multiple modifiers you'll see double digit numbers. FYI, you can restore the original keymap via "setxkbmap us". For more info you can look at xterm's source code. Specifically in input.c[1] search for the definition of xtermParamToState and look at the comment before it. Also, to see how iTerm2 ignores the alt modifier, look at [2] and search for modValues. Now that I managed to reproduce this on my machine, I realized that the fix is a bit more complicated than I expected. I can try to gather some time in the future to fix it unless you beat me to it. :) [1] http://ftp.netbsd.org/pub/NetBSD/NetBSD-release-5/xsrc/external/mit/xterm/dist/input.c [2] https://code.google.com/p/iterm2/source/diff?spec=svn894&r=894&format=side&path=/trunk/VT100Terminal.m -- Balazs ------------------------------------------------------------------------------ "Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE Instantly run your Selenium tests across 300+ browser/OS combos. Get unparalleled scalability from the best Selenium testing platform available Simple to use. Nothing to install. Get started now for free." http://p.sf.net/sfu/SauceLabs _______________________________________________ tmux-users mailing list tmux-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/tmux-users