Re: Cursor Color/Style not resetting when switching panes/windows

2013-06-02 Thread Nicholas Marriott
tmux should only crash when you set a terminal-overrides that doesn't include Cs. If it still does, give me another example. On Sun, Jun 02, 2013 at 01:23:50AM -0700, simfox3 wrote: >Nicholas, thank you. > >I won't get a chance to patch and rebuild till tomorrow morning but just >out

Re: Cursor Color/Style not resetting when switching panes/windows

2013-06-02 Thread simfox3
Nicholas, thank you. I won't get a chance to patch and rebuild till tomorrow morning but just out curiosity, without patching, how do I change the default terminal-overrides? If it's through .tmux.conf, tmux crashes no matter what I add/set set-option -g terminal-overrides. I'm assuming this patc

Re: Cursor Color/Style not resetting when switching panes/windows

2013-06-02 Thread Nicholas Marriott
I'm away for the next couple of weeks and I think this is right so I am applying this now. If you don't want to bother rebuilding to use this, it should be enough to set Cs and Csr to the values in the default terminal-overrides. However if you do this you'll need to change them to Ss and Se. O

Re: Cursor Color/Style not resetting when switching panes/windows

2013-06-02 Thread Nicholas Marriott
Oops looks like somewhere along the line the xterm ones got changed to Ss and Se and Cs and Cr used for the cursor colour. Try this please. Index: options-table.c === RCS file: /cvs/src/usr.bin/tmux/options-table.c,v retrieving revis

Re: Cursor Color/Style not resetting when switching panes/windows

2013-06-01 Thread simfox3
Thanks for the detailed explanation. The tmux server crashes with a [lost server] message as soon as I send a mouse cursor escape sequence IF terminal-overrides option is defined in .tmux.conf--no matter what I add, remove, or set. For example, in .tmux.conf, I'll add this basic line: set -g term

Re: Cursor Color/Style not resetting when switching panes/windows

2013-06-01 Thread Nicholas Marriott
Unfortunately, in xterm "0 q" is not the sequence to reset cursor style to what you configured. It always resets it to "blinking block". Which IMO is silly but I guess it probably matches the DEC behaviour and it's the way it is. Anyway, in tmux we do need some way to reset to the actual default,

Re: Cursor Color/Style not resetting when switching panes/windows

2013-06-01 Thread simfox3
Hi Nicholas, I've been playing around with various escape code using echo -ne and here are my observations: 1. The CORRECT mintty escape code to reset cursor style back to the default vertical line is: '\e[0 q'. Tmux is swallowing this specific escape sequence, and not passing it on to the termin

Re: Cursor Color/Style not resetting when switching panes/windows

2013-06-01 Thread Nicholas Marriott
It was merged. If you use the DCS \ePtmux;...\e\\ escaping then it won't work, that makes tmux pass the cursor sequences through without tracking them. On Fri, May 31, 2013 at 05:45:39PM -0700, simfox3 wrote: >Hi All, >In VIM, my normal mode cursor is a block, like most of you I presume.

Cursor Color/Style not resetting when switching panes/windows

2013-05-31 Thread simfox3
Hi All, In VIM, my normal mode cursor is a block, like most of you I presume. If I switch panes or windows while in normal mode, the cursor style (block) comes along for the ride. Sure, I could issue a simple escape sequence (echo -ne "\e[5 q") to reset it to the vertical line, but wouldn't it be