Re: Italics in tmux

2011-06-10 Thread Tiago Resende
On Friday, 2011-06-10, at 22:59:59 +0200, clemens fischer wrote: > Tiago Resende wrote: > > Try > > > > $ infocmp screen | grep -o '\(smso\|sgr\)=[^,]*,' > > > > and you'll see the problem (3s instead of 7s). > > I don't understand, because there's neither here in my output: > > $ infocmp sc

Re: Italics in tmux

2011-06-10 Thread clemens fischer
Tiago Resende wrote: > It is already configurable through terminfo. If you want italics and > standout to work properly, use what's in the FAQ [1]: > > ] To make applications aware that tmux supports italics and to use a proper > ] escape sequence for standout, you'll need to create a new terminf

Re: Italics in tmux

2011-06-09 Thread Tiago Resende
On Thursday, 2011-06-09, at 22:17:43 +0200, clemens fischer wrote: > Please, guys, can this be made configurable somehow? > > Is there a workaround to get that standout mode back? It is already configurable through terminfo. If you want italics and standout to work properly, use what's in the FAQ

Re: Italics in tmux

2011-06-09 Thread clemens fischer
On Mon-2011/04/11-09:15 Nicholas Marriott wrote (MID <20110411071536.ga2...@yelena.nicm.ath.cx>): > Thanks, applied. I made some minor tweaks and changed ~/.screen.conf to > ~/.tmux.conf ;-). Please, guys, can this be made configurable somehow? I just updated to SVN-2525 and, with rxvt-unicode t

Re: Italics in tmux

2011-04-15 Thread Ben Boeckel
Tiago Resende wrote: > I was thinking, urxvt has always (I think) supported italics, so unless > your build was specifically patched to remove it (not disable it during > /configure, because if that was the case, urxvt _would_ render italics > as reverse), maybe you are just missing a font with it

Re: Italics in tmux

2011-04-15 Thread Tiago Resende
On Friday, 2011-04-15, at 12:30:21 +, Ben Boeckel wrote: > Tiago Resende wrote: > > I'm gonna take a guess here. I think urxvt is reporting to support sitm > > when it actually doesn't, then screen-256color does its switch between > > sitm and smso, then less requests standout but gets italics

Re: Italics in tmux

2011-04-15 Thread Ben Boeckel
Tiago Resende wrote: > I'm gonna take a guess here. I think urxvt is reporting to support sitm > when it actually doesn't, then screen-256color does its switch between > sitm and smso, then less requests standout but gets italics instead, > which urxvt simply refuses to render. I just reproduced i

Re: Italics in tmux

2011-04-14 Thread Tiago Resende
On Friday, 2011-04-15, at 00:05:14 -0400, Ben Boeckel wrote: > Screenshot attached. All use urxvt256cc as the terminal (don't have any > others handy). > > Left side is rxvt-unicode-256color. > Top right is tmux HEAD (screen-256color). > Bottom right is tmux 1.4 (screen-256color). > > rxvt-unicod

Re: Italics in tmux

2011-04-14 Thread Tiago Resende
On Friday, 2011-04-15, at 03:05:22 +, Ben Boeckel wrote: > So it seems as though this patch has screwed up less somehow. Now I get > no reverse video on the status line or search results. Can anyone else > confirm? Working fine here. Screenshot attached. Top left is xterm with TERM=screen-it,

Re: Italics in tmux

2011-04-14 Thread Ben Boeckel
Nicholas Marriott wrote: > Thanks, applied. I made some minor tweaks and changed ~/.screen.conf to > ~/.tmux.conf ;-). So it seems as though this patch has screwed up less somehow. Now I get no reverse video on the status line or search results. Can anyone else confirm? --Ben -

Re: Italics in tmux

2011-04-14 Thread Tiago Resende
On Thursday, 2011-04-14, at 09:58:19 -0700, Micah Cowan wrote: > (04/09/2011 09:52 AM), Tiago Resende wrote: > > > $ infocmp "$screen_terminfo" | sed \ > > -e 's/^screen[^|]*\|[^,]*,/screen-it|screen with italics > > support,/' > > The \| above should be |. In GNU sed at least, \|

Re: Italics in tmux

2011-04-14 Thread Micah Cowan
(04/09/2011 09:52 AM), Tiago Resende wrote: > OK, now this is embarrassing. This time I got it right, I swear. Still a bit wrong, I'm afraid :\ > $ infocmp "$screen_terminfo" | sed \ > -e 's/^screen[^|]*\|[^,]*,/screen-it|screen with italics > support,/' The \| above should

Re: Italics in tmux

2011-04-11 Thread Nicholas Marriott
Thanks, applied. I made some minor tweaks and changed ~/.screen.conf to ~/.tmux.conf ;-). On Sat, Apr 09, 2011 at 01:52:37PM -0300, Tiago Resende wrote: > OK, now this is embarrassing. This time I got it right, I swear. Sorry > for cluttering everyone's mailboxes! > > FAQ > > * vim or $

Re: Italics in tmux

2011-04-09 Thread Tiago Resende
OK, now this is embarrassing. This time I got it right, I swear. Sorry for cluttering everyone's mailboxes! FAQ * vim or $otherprogram displays reverse video instead of italics, even though tmux displays italics just fine in the status line. What's wrong? Screen's terminfo description

Re: Italics in tmux

2011-04-09 Thread Tiago Resende
Oops! Tried my sed code and it was wrong, I forgot the commas. Sorry! Let me try it again: FAQ * vim or $otherprogram displays reverse video instead of italics, even though tmux displays italics just fine in the status line. What's wrong? Screen's terminfo description lacks italics mod

Re: Italics in tmux

2011-04-09 Thread Tiago Resende
On Saturday, 2011-04-09, at 08:56:25 +0100, Nicholas Marriott wrote: > So unless there are any other compelling reasons for tmux to have its > own terminfo I'm not going to recommend people do this unless they > actually need to use italics. I understand. > Although if you'd like to write an entr

Re: Italics in tmux

2011-04-09 Thread Nicholas Marriott
Thanks, Since there seems to only be one terminal in the default terminfo database that supports sitm (iris-color), I don't think it is worth going with this officially. I don't really want to give the impression that tmux needs its own terminfo entry if possible - we would need to make it actual

Re: Italics in tmux

2011-04-09 Thread Nicholas Marriott
Applied, thanks. On Fri, Apr 08, 2011 at 10:35:38PM -0300, Tiago Resende wrote: > On Friday, 2011-04-08, at 23:46:38 +0100, Nicholas Marriott wrote: > > I think it would be better if this only uses sitm if it exists and > > uses smso if it does not. > > I have no idea why I didn't think of this

Re: Italics in tmux

2011-04-08 Thread Tiago Resende
Here's the terminfo file, based on the screen-256color one from screen-4.0.3-11 in Arch's extra repository. Compile with: $ mkdir ~/.terminfo/ $ tic tmux.terminfo Then add to ~/.tmux.conf: set -g default-terminal 'tmux' Or just try it out with: $ export TERM=tmux # Reconstructed via inf

Re: Italics in tmux

2011-04-08 Thread Tiago Resende
On Friday, 2011-04-08, at 23:46:38 +0100, Nicholas Marriott wrote: > I think it would be better if this only uses sitm if it exists and > uses smso if it does not. I have no idea why I didn't think of this the first time. I have urxvt and the console displaying the same session right now, urxvt sh

Re: Italics in tmux

2011-04-08 Thread Nicholas Marriott
Hi I think it would be better if this only uses sitm if it exists and uses smso if it does not. Cheers On Fri, Apr 08, 2011 at 03:19:06PM -0300, Tiago Resende wrote: > Hey, guys. > > I'm trying to get italics working under tmux (cvs), especially for > editing html files in vim. I use rxvt-unic