Create URL Links in the Terminal

Shellscript(Bash/Zsh)
2022-12-27 12:16 (3 years ago)
Create URL Links in the Terminal

You can make applications like iTerm2 open a URL different from the link text by Command + clicking, similar to the HTML <a> tag.

Hyperlinks in Terminal Emulators

printf '\e]8;;http://example.com\e\\This is a link\e]8;;\e\\\n'

Image

Please rate this article
Currently unrated
The author runs the application development company Cyberneura.
We look forward to discussing your development needs.

Categories

Archive