mirror of
				https://github.com/tmux/tmux.git
				synced 2025-11-04 00:56:10 +00:00 
			
		
		
		
	Update from Tiago Resende.
This commit is contained in:
		
							
								
								
									
										23
									
								
								FAQ
									
									
									
									
									
								
							
							
						
						
									
										23
									
								
								FAQ
									
									
									
									
									
								
							@@ -372,17 +372,23 @@ be recreated with:
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
    cd /dev && rm null && ./MAKEDEV null
 | 
					    cd /dev && rm null && ./MAKEDEV null
 | 
				
			||||||
 | 
					
 | 
				
			||||||
* vim or $otherprogram displays reverse video instead of italics, even though
 | 
					* vim displays reverse video instead of italics, while less displays italics
 | 
				
			||||||
  tmux displays italics just fine in the status line. What's wrong?
 | 
					  (or just regular text) instead of reverse. What's wrong?
 | 
				
			||||||
 | 
					
 | 
				
			||||||
Screen's terminfo description lacks italics mode and has standout mode in its
 | 
					Screen's terminfo description lacks italics mode and has standout mode in its
 | 
				
			||||||
place. To make applications aware that tmux supports italics, you'll need to
 | 
					place, but using the same escape sequence that urxvt uses for italics. This
 | 
				
			||||||
create a new terminfo file with modified smso, rmso, sitm and ritm entries:
 | 
					means applications (like vim) looking for italics will not find it and might
 | 
				
			||||||
 | 
					turn to reverse in its place, while applications (like less) asking for
 | 
				
			||||||
 | 
					standout will end up with italics instead of reverse. To make applications
 | 
				
			||||||
 | 
					aware that tmux supports italics and to use a proper escape sequence for
 | 
				
			||||||
 | 
					standout, you'll need to create a new terminfo file with modified sgr, smso,
 | 
				
			||||||
 | 
					rmso, sitm and ritm entries:
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	$ mkdir $HOME/.terminfo/
 | 
						$ mkdir $HOME/.terminfo/
 | 
				
			||||||
	$ screen_terminfo="screen"
 | 
						$ screen_terminfo="screen"
 | 
				
			||||||
	$ infocmp "$screen_terminfo" | sed \
 | 
						$ infocmp "$screen_terminfo" | sed \
 | 
				
			||||||
	  -e 's/^screen[^|]*\|[^,]*,/screen-it|screen with italics support,/' \
 | 
						  -e 's/^screen[^|]*|[^,]*,/screen-it|screen with italics support,/' \
 | 
				
			||||||
 | 
						  -e 's/%?%p1%t;3%/%?%p1%t;7%/' \
 | 
				
			||||||
	  -e 's/smso=[^,]*,/smso=\\E[7m,/' \
 | 
						  -e 's/smso=[^,]*,/smso=\\E[7m,/' \
 | 
				
			||||||
	  -e 's/rmso=[^,]*,/rmso=\\E[27m,/' \
 | 
						  -e 's/rmso=[^,]*,/rmso=\\E[27m,/' \
 | 
				
			||||||
	  -e '$s/$/ sitm=\\E[3m, ritm=\\E[23m,/' > /tmp/screen.terminfo
 | 
						  -e '$s/$/ sitm=\\E[3m, ritm=\\E[23m,/' > /tmp/screen.terminfo
 | 
				
			||||||
@@ -399,5 +405,10 @@ If your terminal supports 256 colors, use:
 | 
				
			|||||||
instead of "screen". See the FAQ entry about 256 colors support for more info.
 | 
					instead of "screen". See the FAQ entry about 256 colors support for more info.
 | 
				
			||||||
Also note that tmux will still display reverse video on terminals that do not
 | 
					Also note that tmux will still display reverse video on terminals that do not
 | 
				
			||||||
support italics.
 | 
					support italics.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					If your urxvt cannot display italics at all, make sure you have an italics
 | 
				
			||||||
 | 
					capable font enabled, for example, add to ~/.Xdefaults:
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						urxvt.italicFont: xft:Bitstream Vera Sans Mono:italic:autohint=true
 | 
				
			||||||
 
 | 
					 
 | 
				
			||||||
$Id: FAQ,v 1.42 2011-04-11 07:14:54 nicm Exp $
 | 
					$Id: FAQ,v 1.43 2011-05-18 17:47:33 nicm Exp $
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user