Hyperlinks
Rio terminal supports opening hyperlinks from the terminal.
MacOS
To activate hyperlink feature hold Command
key when hovering a link:
Windows / Linux / BSD
To activate hyperlink feature hold alt
key when hovering a link:
OSC 8
Rio terminal support OSC 8 for defining hyperlinks.
OSC 8 ; [params] ; [url] ST
The [params]
consists of zero or more colon-delimited key-value pairs. A key-value pair is formatted as key=value
. The only currently defined key is id.
If the url is absent then that ends the hyperlink. Typical usage would look like:
OSC 8 ; ; https://example.com/ ST Link to example website OSC 8 ; ; ST
Will work as default rio terminal hyperlinks, by holding command or alt
key (depending of your platform) and clicking the link.
OSC 8 Example
printf '\e]8;;https://raphamorim.io/rio/\e\\This is a link\e]8;;\e\\\n'