> 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. Escape characters in the sequences must > be doubled. For example: > > $ printf '\033Ptmux;\033\033]12;red\007\033\\' > > Will pass \033]12;red\007 to the terminal (and change the cursor colour > in xterm). From Kevin Goodsell.
Hi there, New to the list, sorry for the manual quoting and reply. Just grabbed this change and tried it out and it works well, as advertised. But it doesn't quite handle a case we have here where Vim sends terminfo SI before insert mode, and EI after leaving insert mode. Using the new facility above one could change the cursor colour to indicate insert mode. Unfortunately when using multiple windows or panes, the cursor colour is changed everywhere. This is especially bad when Vim is open in more than one place and the mode is shown incorrectly. Have a patch here that recognizes a custom DECSET/DECRST sequence to enable and disable a "Vim Cursor Mode" which causes Tmux to send tmuxSI or tmuxEI terminfo entries to the underlying terminal. This allows Tmux to track the proper mode per pane/window and keep it updated as appropriate. There are other ways to handle this, but it works and is a simple change. Patch attached for your consideration. Cheers, Sean
vimcursor.patch
Description: Binary data
------------------------------------------------------------------------------ Colocation vs. Managed Hosting A question and answer guide to determining the best fit for your organization - today and in the future. http://p.sf.net/sfu/internap-sfd2d
_______________________________________________ tmux-users mailing list tmux-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/tmux-users