Create URL Links in the Terminal

Shellscript(Bash/Zsh)
2022-12-27 21:16 (2 years ago) ytyng

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

Current rating: 1
The author runs the application development company Cyberneura.
We look forward to discussing your development needs.

Comments

Archive

2025
2024
2023
2022
2021
2020
2019
2018
2017
2016
2015
2014
2013
2012
2011