Hi!

On Sat, Feb 01, 2020 at 05:02:18AM +0000, Bernd Edlinger wrote:
> >> Definitely, if the situation with tmux is like xfce4-terminal (reportedly
> >> the 0.8 version switched to a fixed VTE, which makes the URLs invisible,
> >> but the URL feature request is pending sine 2017, with no activity 
> >> whatsoever),
> >> then detecting that and disabling the URLs until they finally implement
> >> the URLs is straight forward.  I can add that to my patch if you confirm,
> >> the right detection logic:
> > 
> > The situation is that it is a terminal multiplexer; you can connect any
> > terminal to it, and swap those out, etc.  You might have one that has
> > support for the url thing at one time, but when you look at that session
> > from a different machine (from your phone, say), not anymore (or the
> > other way around).  You can also connect multiple actual terminals at
> > the same time.
> > 
> > In short, even *if* you could detect whether the terminal supports this
> > url thing (and you cannot), you cannot detect whether it will support it
> > two seconds from now, and even if the url thing you already displayed
> > will misbehave *in the future*!
> 
> Ah, okay, this is a totally wrong assumption then.
> 
> So if I understand you right, I should add a check for
> tmux in should_colorize, where the TERM=dumb thing is,
> and add TERM=screen, and TMUX=anything, to switch of
> auto-color off, which will take down URLs at the same time?

Well, colourisation doesn't mess up the display so much, in practice; it
just makes it completely unreadable (for me anyway), so I have GCC_COLORS=
just like I need stuff for very many other programs to disable colours.
Something similar can of course work to turn off the url thing, but since
that make the display unusable on not very few systems, and the utility
of this is much lower as well (people just love those colours, for some
strange reason; urls is more meh), yes please, do not do the url thing
with TERM=dumb or TERM=ansi or TERM=screen and maybe some similar; but I
think many people will like their colours enabled.


Segher

Reply via email to