Hi Branden,

On Tue, Aug 26, 2025 at 03:23:09PM -0500, G. Branden Robinson wrote:
> Here's a sketch, interpolated into some existing logic.
> 
> .\" For most purposes, we treat the nroff devices equivalently.
> .nr an*is-output-terminal 0
> .if '\*(.T'ascii'  .nr an*is-output-terminal 1
> .if '\*(.T'latin1' .nr an*is-output-terminal 1
> .if '\*(.T'utf8'   .nr an*is-output-terminal 1
> .
> .nr an*can-hyperlink 0
> .if \n[an*is-output-html] \
> .  nr an*can-hyperlink 1
> .
> .if \n[an*is-output-terminal]) \{\
> .  if '\?\V[TERM]\?'gnome-terminal'       .nr an*can-hyperlink 1
> .  if '\?\V[TERM]\?'some-other-terminal'  .nr an*can-hyperlink 1
> .  if '\?\V[TERM]\?'yet-another-terminal' .nr an*can-hyperlink 1
> .\}
> .
> .if '\*[.T]'pdf' \
> .  nr an*can-hyperlink 1
> .
> . \" Later...
> .\" hyperlinked text desired
> .if !r U \
> .  nr U 1
> .
> .nr an*do-hyperlink 0
> .if (\n[U] & \n[an*can-hyperlink]) .nr an*do-hyperlink 1
> 
> (I don't, off the top of my head, actually know of any terminal
> emulators that implement OSC 8 besides gnome-terminal(1).[2])

I see hyperlinks in xfce4-terminal.  I suppose it supports them.


Have a lovely night!
Alex

-- 
<https://www.alejandro-colomar.es/>

Attachment: signature.asc
Description: PGP signature

Reply via email to