Re: Q: tmux sending different key escape codes for Option+Left/Right depending on $TERM?

2015-05-07 Thread Leonardo Brondani Schenkel
On 07/05/15 00:31, Thomas Adam wrote: TERM=nsterm tmux - -Ltest -f/dev/null new Log files are attached: I started tmux as directed, invoked cat, pressed Option/Alt+Left three times, then Enter/Return, then Ctrl+D twice. This was done twice, one with TERM=nsterm (filename suffix -nsterm)

Re: Q: tmux sending different key escape codes for Option+Left/Right depending on $TERM?

2015-05-07 Thread Leonardo Brondani Schenkel
[3;5~, kDC7=\E[3;5~, kLFT3=\Eb, kLFT5=\E[1;5D, kRIT3=\Ef, kRIT5=\E[1;5C, On Thu, May 07, 2015 at 09:43:15AM +0200, Leonardo Brondani Schenkel wrote: On 07/05/15 00:31, Thomas Adam wrote: TERM=nsterm tmux - -Ltest -f/dev/null new Log files are attached: I started tmux

Re: Q: tmux sending different key escape codes for Option+Left/Right depending on $TERM?

2015-05-06 Thread Leonardo Brondani Schenkel
+0200, Leonardo Brondani Schenkel wrote: Hello, I'm using tmux 1.9a in Terminal.app 343.7 (OS X 10.10). I noticed by accident that when I press Option+Left/Right I get different escape codes, depending if the $TERM variable outside tmux is set to 'nsterm' or 'xterm'. For example, when

Re: Q: tmux sending different key escape codes for Option+Left/Right depending on $TERM?

2015-05-06 Thread Leonardo Brondani Schenkel
On 06/05/2015 20:49, Nicholas Marriott wrote: Are you sure it is \[b not \[[b? Positive. Just double checked via cat: ^[b. In Terminal.app preferences it's shown as \033b. Original message From: Leonardo Brondani Schenkel Date:06/05/2015 16:50 (GMT+00:00) To: Nicholas

Re: Q: tmux sending different key escape codes for Option+Left/Right depending on $TERM?

2015-05-09 Thread Leonardo Brondani Schenkel
+0200, Leonardo Brondani Schenkel wrote: On 07/05/15 09:58, Nicholas Marriott wrote: new key ^[b: 0x301f (M-Left) Are you sure your tmux is unmodified? It's the version available on MacPorts. As far as I can see it does not patch tmux in any significant way: https://trac.macports.org/browser

Q: tmux sending different key escape codes for Option+Left/Right depending on $TERM?

2015-05-06 Thread Leonardo Brondani Schenkel
Hello, I'm using tmux 1.9a in Terminal.app 343.7 (OS X 10.10). I noticed by accident that when I press Option+Left/Right I get different escape codes, depending if the $TERM variable outside tmux is set to 'nsterm' or 'xterm'. For example, when pressing Option+Left: $TERM=='nsterm': ^[^[OD or

Re: Q: tmux sending different key escape codes for Option+Left/Right depending on $TERM?

2015-05-12 Thread Leonardo Brondani Schenkel
On 09/05/15 12:12, Nicholas Marriott wrote: On Sat, May 09, 2015 at 11:38:09AM +0200, Leonardo Brondani Schenkel wrote: Makes perfect sense. However, since I get ^[[D or ^[OD in cat, where did KEYC_ESCAPE go? Shouldn't I be getting ^[^[[D or ^[^[OD instead? What am I missing here? It looks