GNU bug report logs - #53234
terminal URL capability not correctly detected (gnome-terminal 3.22.2).

Previous Next

Package: guix;

Reported by: Maxim Cournoyer <maxim.cournoyer <at> gmail.com>

Date: Thu, 13 Jan 2022 18:50:02 UTC

Severity: normal

Done: Maxim Cournoyer <maxim.cournoyer <at> gmail.com>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 53234 in the body.
You can then email your comments to 53234 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-guix <at> gnu.org:
bug#53234; Package guix. (Thu, 13 Jan 2022 18:50:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Maxim Cournoyer <maxim.cournoyer <at> gmail.com>:
New bug report received and forwarded. Copy sent to bug-guix <at> gnu.org. (Thu, 13 Jan 2022 18:50:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Maxim Cournoyer <maxim.cournoyer <at> gmail.com>
To: bug-guix <bug-guix <at> gnu.org>
Subject: terminal URL capability not correctly detected (gnome-terminal
 3.22.2).
Date: Thu, 13 Jan 2022 13:49:29 -0500
Hello,

I discovered that on a Debian 9 (stretch) box equipped with
gnome-terminal 3.22.2, Guix would use terminal ANSI codes to represent
hyperlinks in its output, which were not supported by GNOME terminal
3.22.2 which uses VTE 0.46.1 (it picked up support in 3.26 IIRC).

Thanks,

Maxim




Information forwarded to bug-guix <at> gnu.org:
bug#53234; Package guix. (Fri, 14 Jan 2022 21:36:01 GMT) Full text and rfc822 format available.

Message #8 received at 53234 <at> debbugs.gnu.org (full text, mbox):

From: Ludovic Courtès <ludo <at> gnu.org>
To: Maxim Cournoyer <maxim.cournoyer <at> gmail.com>
Cc: 53234 <at> debbugs.gnu.org
Subject: Re: bug#53234: terminal URL capability not correctly detected
 (gnome-terminal 3.22.2).
Date: Fri, 14 Jan 2022 22:35:30 +0100
Hi,

Maxim Cournoyer <maxim.cournoyer <at> gmail.com> skribis:

> I discovered that on a Debian 9 (stretch) box equipped with
> gnome-terminal 3.22.2, Guix would use terminal ANSI codes to represent
> hyperlinks in its output, which were not supported by GNOME terminal
> 3.22.2 which uses VTE 0.46.1 (it picked up support in 3.26 IIRC).

I’m afraid there’s not much we can do: terminal emulators are supposed
to ignore ANSI sequences they don’t understand.

My recollection is that there was a bug in libvte back then:

  https://issues.guix.gnu.org/38940#6-lineno18

That bug mentions a much older VTE though, so I wonder if it’s a newer
regression?

Ludo’.




Reply sent to Maxim Cournoyer <maxim.cournoyer <at> gmail.com>:
You have taken responsibility. (Sat, 15 Jan 2022 04:55:02 GMT) Full text and rfc822 format available.

Notification sent to Maxim Cournoyer <maxim.cournoyer <at> gmail.com>:
bug acknowledged by developer. (Sat, 15 Jan 2022 04:55:02 GMT) Full text and rfc822 format available.

Message #13 received at 53234-done <at> debbugs.gnu.org (full text, mbox):

From: Maxim Cournoyer <maxim.cournoyer <at> gmail.com>
To: Ludovic Courtès <ludo <at> gnu.org>
Cc: 53234-done <at> debbugs.gnu.org
Subject: Re: bug#53234: terminal URL capability not correctly detected
 (gnome-terminal 3.22.2).
Date: Fri, 14 Jan 2022 23:54:28 -0500
Hello!

Ludovic Courtès <ludo <at> gnu.org> writes:

> Hi,
>
> Maxim Cournoyer <maxim.cournoyer <at> gmail.com> skribis:
>
>> I discovered that on a Debian 9 (stretch) box equipped with
>> gnome-terminal 3.22.2, Guix would use terminal ANSI codes to represent
>> hyperlinks in its output, which were not supported by GNOME terminal
>> 3.22.2 which uses VTE 0.46.1 (it picked up support in 3.26 IIRC).
>
> I’m afraid there’s not much we can do: terminal emulators are supposed
> to ignore ANSI sequences they don’t understand.

Ah, thanks for pointing that to me.  I had guessed we had to do some
work to detect the terminal capability and conditionally output escapes
or not, but I'm glad that's not how it works :-).

> My recollection is that there was a bug in libvte back then:
>
>   https://issues.guix.gnu.org/38940#6-lineno18
>
> That bug mentions a much older VTE though, so I wonder if it’s a newer
> regression?

According to [0]:

> At this moment, terminals known to be buggy (OSC 8 resulting in
> display corruption) are VTE versions up to 0.46.2 and 0.48.1, Windows
> Terminal up to 0.9, Emacs's built-in terminal, and screen with 700+
> character long URLs.

Which gnome-terminal shipped with Debian 9 uses.  Luckily, this release
will be EOL in a few months (June 2022) [1], so the problem will
disappear soon.

I'm closing this report, thank you for the explanations!

Maxim

[0]  https://gist.github.com/egmontkob/eb114294efbcd5adb1944c9f3cb5feda
[1]  https://www.debian.org/releases/stretch/




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Sat, 12 Feb 2022 12:24:07 GMT) Full text and rfc822 format available.

This bug report was last modified 3 years and 179 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.