* Nicholas Marriott <nicholas.marri...@gmail.com> [120712 23:31]:
> Same sequence in any terminal inside tmux, but you need to make sure Cc
> and Cr are correct in the OUTSIDE terminfo entry, "linux" for you. Can
> do this by adding to terminal-overrides.

I'm looking at terminal-overrides, trying to figure out what Cc and
Cr should be set to... tmux(1) says:

  Cc -- takes a single string argument and is used to set the colour
  Cr -- takes no arguments and restores the default cursor colour. 

Maybe I'm overlooking something obvious, but I'm not understanding
what to set these to. Re-tracing the steps I took getting the
cursor-color-change thing working in Vim + Screen + Linux fb console:

Created a custom terminfo "screen.linux" with these entries in it:

  cvvis=\E[34l, cnorm=\E[34h\E[?25h

Then, within a tty in Screen TERM is recognized as "screen.linux" and
`tput cvvis` & `tput cnorm` switch the cursor color back & forth.

Put this in my vimrc:

  if &term == "screen.linux"
    set t_ve+=^[[34l
    au InsertEnter * set t_ve+=^[[34h^[[?25h    " cnorm
    au InsertLeave * set t_ve+=^[[34l           " cvvis
    autocmd VimLeave * set t_ve+=^[[34h^[[?25h  " cnorm
  endif

Ok, back to tmux... set this in my ~/.tmux.conf :

  set -g default-terminal "screen.linux"
  set terminal-overrides "screen.linux:Cc=\E[34h\E[?25h,Cr=\E[34l"

That terminal-overrides line has no effect...clearly I'm doing
something wrong there. Question -- once it is set properly, should
`tput Cc` and `tput Cr` switch the cursor color back & forth in tmux?

Setting default-terminal to "screen.linux" is the only way I've found
to get Vim, ELinks etc. to display properly in tmux + fb console
(with the exception of having the cursor change color). Setting it to
"linux" works as well, but that brings up the "Couldn't get a file
descriptor referring to the console" message when starting tmux.

Any pointers on how to get this working would be much appreciated.

John

-- 
John Magolske
http://B79.net/contact

------------------------------------------------------------------------------
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

Reply via email to