bug-ncurses
[Top][All Lists]
Advanced

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

Re: OSC8 hyperlink support in ncurses


From: Nicholas Marriott
Subject: Re: OSC8 hyperlink support in ncurses
Date: Wed, 23 Aug 2023 09:53:21 +0100

tmux looks for an Hls extension capability to do this:

Hls=\E]8;%?%p1%l%tid=%p1%s%;;%p2%s\E\\

As far as security, tmux doesn't do anything with the links itself, so if you think it is a bad idea without tmux, it is still a bad idea with it.



On Wed, 23 Aug 2023 at 09:22, G. Branden Robinson <g.branden.robinson@gmail.com> wrote:
Hi Thomas,

At 2023-08-23T03:24:51-0400, Thomas Dickey wrote:
> On Tue, Aug 22, 2023 at 01:12:04PM -0400, Dusty Mabe wrote:
> > I'm wondering if anyone has ever requested OSC8 hyperlink support
> > [1] in ncurses
>
> This is probably the first mention on this list.
>
> I don't see any use in my working on this, because:
>
> a) it opens up a new set of security vulnerabilities

There was a humdinger of an argument about this on Egmont Koblinger's
Gist about this feature.

https://gist.github.com/egmontkob/eb114294efbcd5adb1944c9f3cb5feda

I offer that link mainly for the edification of bystanders; I trust
you've already read and considered that material.

>    (which if you read this list, and investigate, you'll notice that I
>    do _all_ of the work to mitigate those issues).

Fair.

> b) doing this as you might expect will interfere with performance for
>    _all_ applications.

Maybe some clever volunteer can think of an unexpected implementation
that doesn't.

> The developer working on tmux is working through the latter, and
> ignoring the former.  Perhaps in a few years, after both aspects are
> resolved, he might want to adapt some of that to ncurses.

In the meantime it would be helpful if you could add a terminfo
capability so that applications using terminfo but not curses per se can
pay their money and take their chances, as with groff's grotty(1), for
which Lennart Jablonka is preparing patches to make the program a
terminfo application (at long last, one might say).

We'd like to be able to ask terminfo if the terminal description
supports OSC 8, but we can't.

Meanwhile, my crystal ball says I'll be using gnome-terminal to check
grotty's OSC 8 support for the foreseeable future--but only on occasion,
as xterm is my daily driver and I have no plans to change that.

Regards,
Branden

reply via email to

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