[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: ANN: terminfo-20140607.src.gz
From: |
Sven Joachim |
Subject: |
Re: ANN: terminfo-20140607.src.gz |
Date: |
Tue, 29 Jul 2014 23:49:44 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.3.92 (gnu/linux) |
On 2014-06-19 09:13 +0200, Nicholas Marriott wrote:
> 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 :-).
Here you go: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=756353.
Starting "emacs -nw -r" inside tmux in xterm or gnome-terminal gives me
italics instead of reverse video.
Cheers,
Sven
> 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")
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Re: ANN: terminfo-20140607.src.gz,
Sven Joachim <=