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: Tue, 17 Jun 2014 12:24:04 +0100
User-agent: Mutt/1.5.23 (2014-03-12)

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.

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

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?

> 
> > 
> > 
> > On Mon, Jun 16, 2014 at 12:51:16PM +0100, Christian Ebert wrote:
> > > * Christian Ebert on Monday, June 16, 2014 at 12:08:02 +0100
> > > > * Thomas Dickey on Tuesday, June 10, 2014 at 04:24:11 -0400
> > > >> On Tue, Jun 10, 2014 at 06:09:30AM +0100, Christian Ebert wrote:
> > > >>> Hm. I only have TERM=screen-256color set, no bce as far as I know of.
> > > >> 
> > > >> The detail that made it seem to work for me was that I normally run 
> > > >> with
> > > >> 
> > > >> TERM=screen-bce.xterm-new
> > > >> 
> > > >> which was setting sitm/ritm (because it inherits from xterm-new, which
> > > >> I'd just updated...), making screen decide that smso/rmso were set.
> > > >> The screen-bce entry - or screen-256color - didn't do that.  Instead,
> > > >> I had moved screen's bogus SGR 3 for sitm to a more conventional SGR 7.
> > > >> (As you noted, that didn't work...)
> > > >> 
> > > >>> This fixes the problem for me in screen. However, tmux now has a
> > > >>> similar problem with italics. Maybe it has something builtin
> > > >>> meant as a workaround which now fails.
> > > >> 
> > > >> I'll take a look - hadn't really studied tmux before...
> > > > 
> > > > Looks like this is fixed in ncurses-5.9-20140614 - thank you very
> > > > much!
> > > 
> > > Sorry, spoke too soon (wishful thinking) - the italics problem is
> > > still there for tmux, so I stick with ncurses-5.9-20140524 for
> > > the time being.
> > > 
> > > -- 
> > > theatre - books - texts - movies
> > > Black Trash Productions at home: http://www.blacktrash.org
> > > Black Trash Productions on Facebook:
> > > http://www.facebook.com/blacktrashproductions
> > > 
> > > _______________________________________________
> > > Bug-ncurses mailing list
> > > address@hidden
> > > https://lists.gnu.org/mailman/listinfo/bug-ncurses
> > 
> > _______________________________________________
> > Bug-ncurses mailing list
> > address@hidden
> > https://lists.gnu.org/mailman/listinfo/bug-ncurses
> 
> -- 
> 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]