Hey John,
Sorry that my previous message wasn't more helpful, I fired it off
hoping it would help without ever having used it on the virtual console
framebuffer. Here is a setup that should work in Vim for you. (you
may have configuration issues under root though,
please try vim as a regular user, or invoke it explicitly as "vim" if
root).
tmux.conf entry :
setw -ga terminal-overrides
',*:Cc=\E[?120;%p1%s;240c:Cr=\E[?120;0;240c:civis=\E[?25l:cnorm=\E[?25h:cvvis=\E[?25h,'
The linux terminfo entry here overrides the cursor color settings for
civis, cnorm, and cvvis and thus need to be redefined to allow things to
work. The other thing to note is the ;0 in the Cr entry which will
select white as the default cursor color.
let &t_SI="\<esc>]12;96\007"
let &t_EI="\<esc>]112\007"
The ";96" above will select a red cursor for insert mode. Without
ranting about the reasons, here are the codes you'll have to choose from
for each of the 8 available colors:
Black = 224
Blue = 192
Green = 160
Cyan = 128
Red = 96
Magenta = 64
Orange = 32
White = 0
Sean.
> Hi Sean,
>
> * Sean Estabrooks <seanl...@sympatico.ca> [120726 12:15]:
> > Here's one example:
> >
> > terminal-overrides ",*:Cc=\\E]12;%p1%s\\007:Cr=\\E]112\\007:"
> >
> > and for vim the codes that tmux expects for setting cursor color,
> >
> > let &t_SI="\<esc>]12;red\007"
> > let &t_EI="\<esc>]112\007"
>
> I couldn't get this to work in the framebuffer console...is it for
> running tmux in a terminal emulator in X (those lines look somewhat
> similar to what I have set up for modal cursor color changing in an
> Xterm)? Have you got this working in a framebuffer console?
>
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
tmux-users mailing list
tmux-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/tmux-users