bug-ncurses
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: ANN: terminfo-20140607.src.gz


From: Nicholas Marriott
Subject: Re: ANN: terminfo-20140607.src.gz
Date: Thu, 19 Jun 2014 08:13:37 +0100
User-agent: Mutt/1.5.23 (2014-03-12)

Thanks. I'm going to leave tmux as it is (sending sitm for SGR 3 if it
can) until I get a concrete bug report from someone who has a problem
with italics or reverse, then I can decide what to do :-).


On Tue, Jun 17, 2014 at 09:00:44PM -0400, Thomas Dickey wrote:
> On Tue, Jun 17, 2014 at 12:24:04PM +0100, Nicholas Marriott wrote:
> > Hi
> > 
> > On Mon, Jun 16, 2014 at 06:18:37PM -0400, Thomas Dickey wrote:
> > > On Mon, Jun 16, 2014 at 05:15:32PM +0100, Nicholas Marriott wrote:
> > > > Hi
> > > > 
> > > > When tmux gets SGR 3 inside it will use sitm outside if the terminal has
> > > > it, otherwise it'll use smso. I don't remember why, possibly to make
> > > > rxvt users happier.
> > > > 
> > > > It's the same for SGR 7 - rev if it exists, otherwise smso.
> > > > 
> > > > But I'm not clear what problem you're seeing, if you want to show me the
> > > > new terminfo entry and tell me how to reproduce the problem (preferably
> > > > off-list), I'll have a look. Perhaps we should go back to doing the same
> > > > as screen here since we are using its terminfo entry.
> > > 
> > > That's not necessarily a Good Thing.
> > > 
> > > You might consider making a special case on initialization to detect if 
> > > it's
> > > got TERM=screen{whatever} and/or smso containing SGR 3.
> > 
> > I'm not really sure what you mean here, it is relatively easy for tmux
> > to automatically fix up the terminfo entry outside if needed but I think
> > tmux-in-screen is rare enough for it not be much of a worry.
> 
> yes - but some users do set TERM=screen, just to make life interesting
>  
> > > 
> > > screen equates SGR 3 to standout, has done this for more than twenty 
> > > years,
> > > and doesn't support italics (unless someone's going to modify screen).
> > > 
> > > On the other hand, ncurses can support italics - not a lot of feedback on 
> > > that though.
> > > 
> > > An application that sends SGR 3 (hardcoded ECMA-48 italics for instance) 
> > > will get standout.
> > > Likewise, an application using screen's terminal description will send 
> > > SGR 3 for standout.
> > > So you can only do this reliably for applications using the terminal 
> > > description.
> > 
> > Yes, there is no way for tmux to tell what an application using
> > TERM=screen really wants when it sends SGR 3.
> > 
> > It seems better to me for tmux to use sitm when it gets SGR 3, if it's
> > available. It's simple to configure tmux to ignore sitm if the user
> > prefers.
> 
> agreed
>  
> > If we alway sent smso by default then it's both a) not really what SGR 3
> > is meant to do and b) slightly harder to configure.
> > 
> > But I'm not sure what the problem is - I took a look at
> > terminfo-20140614.src and it looks like both TERM=screen and
> > TERM=screen.xterm-new still have smso=\E[3m and no sitm. So what's up?
> > Christian?
> 
> screen would get confused otherwise - see my longish comment here:
> 
>       http://invisible-island.net/ncurses/terminfo.src.html#toc-_Screen
> 
> (look for "design error")
> 
> -- 
> Thomas E. Dickey <address@hidden>
> http://invisible-island.net
> ftp://invisible-island.net





reply via email to

[Prev in Thread] Current Thread [Next in Thread]