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 to

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

2015-05-09 Thread Nicholas Marriott
On Sat, May 09, 2015 at 11:38:09AM +0200, Leonardo Brondani Schenkel wrote: On 07/05/2015 13:48, Nicholas Marriott wrote: +tmux-users On Thu, May 07, 2015 at 10:01:03AM +0100, Nicholas Marriott wrote: Hi Well that explains it, since you have kLFT3=\Eb tmux will send M-Left

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

2015-05-09 Thread Leonardo Brondani Schenkel
On 07/05/2015 13:48, Nicholas Marriott wrote: +tmux-users On Thu, May 07, 2015 at 10:01:03AM +0100, Nicholas Marriott wrote: Hi Well that explains it, since you have kLFT3=\Eb tmux will send M-Left instead of M-b for \Eb (and Option+Left since your terminal sends \Eb for that too). All

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

2015-05-09 Thread Nicholas Marriott
... input_parse is logging what tmux receives from the terminal, in this case it is cat printing ^[^[[D. So the additional ^[ was sent to the terminal, and cat echoed it. When I say terminal here I mean the pty inside tmux pane of course, not the terminal emulator outside tmux.

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

2015-05-07 Thread Nicholas Marriott
Hi new key ^[b: 0x301f (M-Left) Are you sure your tmux is unmodified? Did you use infocmp -x when dumping the terminfo entries you sent? If not, try infocmp -x nsterm and look for kLFT3. On Thu, May 07, 2015 at 09:43:15AM +0200, Leonardo Brondani Schenkel wrote: On 07/05/15 00:31, Thomas

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
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/trunk/dports/sysutils/tmux?rev=132936

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

2015-05-07 Thread Nicholas Marriott
+tmux-users On Thu, May 07, 2015 at 10:01:03AM +0100, Nicholas Marriott wrote: Hi Well that explains it, since you have kLFT3=\Eb tmux will send M-Left instead of M-b for \Eb (and Option+Left since your terminal sends \Eb for that too). On Thu, May 07, 2015 at 10:51:52AM +0200,

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

2015-05-06 Thread Thomas Adam
On 6 May 2015 at 22:42, Nicholas Marriott nicholas.marri...@gmail.com wrote: Hmm weird. There is nothing in the nsterm terminfo to make tmux think that M-b is actually M-Left. Please run TERM=nsterm tmux -Ltest -f/dev/null new then press Option+Left That should be: TERM=nsterm tmux

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

2015-05-06 Thread Nicholas Marriott
Yes of course, sorry. On Wed, May 06, 2015 at 11:31:51PM +0100, Thomas Adam wrote: On 6 May 2015 at 22:42, Nicholas Marriott nicholas.marri...@gmail.com wrote: Hmm weird. There is nothing in the nsterm terminfo to make tmux think that M-b is actually M-Left. Please run TERM=nsterm

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

2015-05-06 Thread Leonardo Brondani Schenkel
On 06 May 2015, at 17:21, Nicholas Marriott nicholas.marri...@gmail.com wrote: What does the terminal actually send outside tmux for Option+Left? ^[b. It's an explicit binding that comes pre-configured by default in Terminal.app (but can be changed). It does not change if the terminal is in

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

2015-05-06 Thread Leonardo Brondani Schenkel
Marriott Cc: tmux-users@lists.sourceforge.net Subject: Re: Q: tmux sending different key escape codes for Option+Left/Right depending on $TERM? On 06 May 2015, at 17:21, Nicholas Marriott nicholas.marri...@gmail.com wrote: Hi What does the terminal actually send outside tmux for Option

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

2015-05-06 Thread Nicholas Marriott
escape codes for Option+Left/Right depending on $TERM? On 06 May 2015, at 17:21, Nicholas Marriott nicholas.marri...@gmail.com wrote: Hi What does the terminal actually send outside tmux for Option+Left? ^[b. It's an explicit binding that comes pre-configured by default in Terminal.app

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

2015-05-06 Thread Nicholas Marriott
Hi What does the terminal actually send outside tmux for Option+Left? You should be able to see by running cat and then pressing the keys. On Wed, May 06, 2015 at 04:59:12PM +0200, Leonardo Brondani Schenkel wrote: Hello, I'm using tmux 1.9a in Terminal.app 343.7 (OS X 10.10). I noticed

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