Re: Is there some way to send an escape code to the terminal from inside tmux?

2011-03-13 Thread Sean Estabrooks
> It is in the OpenBSD tree, it'll be in SF tree when they are > synced up, probably not too long. > > revision 1.37 > date: 2011/03/07 23:46:27; author: nicm; state: Exp; lines: +49 -24 > Support passing through escape sequences to the underlying terminal by > using DCS with a "tmux;" prefix.

Re: Is there some way to send an escape code to the terminal from inside tmux?

2011-03-13 Thread Nicholas Marriott
Hi I think the right way to do this is to add support for the xterm cursor sequences (preferably both the cursor shape and colour). This will mean saving the colour value as a string for each pane. On Sun, Mar 13, 2011 at 11:58:35AM +, Sean Estabrooks wrote: > > It is in the OpenBSD tree,

RE: Is there some way to send an escape code to the terminal from inside tmux?

2011-03-13 Thread Sean Estabrooks
> Date: Sun, 13 Mar 2011 12:45:52 + > From: nicholas.marri...@gmail.com > > Hi > > I think the right way to do this is to add support for the xterm cursor > sequences (preferably both the cursor shape and colour). This will mean > saving the colour value as a string for each pane. > > Of cour

Re: Is there some way to send an escape code to the terminal from inside tmux?

2011-03-13 Thread Nicholas Marriott
This looks good. You will have to use \033]112\007 to reset the cursor colour to default for panes where it hasn't been set. Personally I would use NULL for this rather than an empty string but it's not too important. Also please change color to colour or it'll make it harder to grep. On Sun, M

Re: Is there some way to send an escape code to the terminal from inside tmux?

2011-03-13 Thread Nicholas Marriott
Also I suspect we only want to enable this if the terminal matches xterm* or it is very likely to cause problems. Maybe do a check like tty_set_title? On Sun, Mar 13, 2011 at 09:28:54PM +, Nicholas Marriott wrote: > This looks good. > > You will have to use \033]112\007 to reset the cursor c

RE: Is there some way to send an escape code to the terminal from inside tmux?

2011-03-13 Thread Sean Estabrooks
> Date: Sun, 13 Mar 2011 21:28:54 + > From: nicholas.marri...@gmail.com > > This looks good. > > You will have to use \033]112\007 to reset the cursor colour to default > for panes where it hasn't been set. Personally I would use NULL for this > rather than an empty string but it's not too i

Re: Is there some way to send an escape code to the terminal from inside tmux?

2011-03-13 Thread Nicholas Marriott
Hi On Mon, Mar 14, 2011 at 01:21:04AM +, Sean Estabrooks wrote: > Okay, third patch attempt attached for review.  Ended up tossing out > the state machine changes since it was difficult to accommodate > the reset sequence which only has a parameter and no value string. > > I did try using NU