You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A hyperlink is opened upon encountering an OSC 8 escape sequence with the target URI. The syntax is
OSC8;params;URIST
Following this, all subsequent cells that are painted are hyperlinks to this target. A hyperlink is closed with the same escape sequence, omitting the parameters and the URI but keeping the separators:
OSC8;;ST
where:
OSC (Operating System Command) is usually ESC]
params are optional special parameters for future use that are typically empty
URI is a URI-encoded hyperlink
ST (String Terminator) is typically ESC\ or sometimes the BEL character
Here's an example link that's included in rustc's output
Implementation-wise I was thinking we could allow customizing the hyperlink HTML output with a user-definable closure that gets the hyperlink's link, escaped text, and a mutable reference to the output HTML with a reasonable default implementation that creates the typical <a href> links
The text was updated successfully, but these errors were encountered:
Lots of terminal emulators have started supporting hyperlinks (link with some deets)
The short of it is summed up by
where:
OSC
(Operating System Command) is usuallyESC
]
params
are optional special parameters for future use that are typically emptyURI
is a URI-encoded hyperlinkST
(String Terminator) is typicallyESC
\
or sometimes theBEL
characterHere's an example link that's included in
rustc
's outputESC
]
8
;
;
https://doc.rust-lang.org/cargo/reference/profiles.html#default-profiles
ESC
\
'dev' profile [unoptimized + debuginfo]
ESC
]
8
;
;
ESC
\
Implementation-wise I was thinking we could allow customizing the hyperlink HTML output with a user-definable closure that gets the hyperlink's link, escaped text, and a mutable reference to the output HTML with a reasonable default implementation that creates the typical
<a href>
linksThe text was updated successfully, but these errors were encountered: