bug-ncurses
[Top][All Lists]
Advanced

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

terminfo capability for hyperlinks


From: Bruno Haible
Subject: terminfo capability for hyperlinks
Date: Fri, 03 Jan 2025 00:54:45 +0100

Hi,

For about 7 years, this writeup explains how to use hyperlinks in
terminal emulators:
  https://gist.github.com/egmontkob/eb114294efbcd5adb1944c9f3cb5feda

6 years ago, I wrote a library (GNU libtextstyle [1]) that makes use
of this feature on terminal emulators that support it. The problem is
determining the "support it": I did not find a terminfo capability
for it, at the time. Nor do I do now. So there still is this ugly code [2]
that looks at the value of $TERM, instead of using terminfo.

I also see that some programs introduce extra command-line options in order
to tell them about the hyperlink capability.

Would it not make sense to introduce a terminfo capability for this?

Bruno

[1] https://www.gnu.org/software/gettext/libtextstyle/manual/libtextstyle.html
[2] 
https://git.savannah.gnu.org/gitweb/?p=gettext.git;a=blob;f=libtextstyle/gnulib-local/lib/term-ostream.oo.c;h=94f01e09a46e3487448ed8df0b6e9784c494883e;hb=HEAD#l2327
[3] https://stackoverflow.com/questions/79013973/






reply via email to

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