-
Notifications
You must be signed in to change notification settings - Fork 38.9k
Test: Hyperlink terminal sequences #161851
Copy link
Copy link
Closed
Labels
Milestone
Description
Refs: #39278
- macOS @sandy081
- windows @TylerLeonhardt
Complexity: 2
The terminal now supports printing hyperlinks (text that points to a url) in the terminal. The full behavior is described at https://gist.github.com/egmontkob/eb114294efbcd5adb1944c9f3cb5feda (we do not support the id attribute though).
Essentially you echo the following:
\x1b]8;; <url> \x1b\ <label> \x1b]8;;\x1b\
Here's an example of how to write one in bash:
printf '\e]8;id=abc;http://example.com/\e\\This is a link中国\e]8;;\e\\\n'
There are some more examples here:
It's fine to test either bash or zsh on macOS.
Reactions are currently unavailable