-
-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Does not detect hyperlink support in other terminals #1
Comments
Thanks for submitting this issue. 🙏
At the time this gem was created this was the case. These were the first terminals to support hyperlinks. The world has changed since. Alacritty has added support only recently(around 2022). Therefore, I disagree that this is a 'bug'. More of a feature request. I'm sure you can appreciate that there are more terminals adding hyperlinks support and more terminals appearing all the time. This is in a way an 'impossible' task to create detection that works for every terminal including the ones that don't even exist yet. However, we can certainly try to support the most common ones. I'd welcome help here. It can be in many forms. Either a PR that implements support for a given terminal. Alternatively, information on how to detect the terminal type from ENV and whether there is a version requirement. For example, use this name from the Further, we could add a configuration option to the TTY::Link.link_to("ttytoolkit.org", "https://ttytoolkit.org", hyperlink: :always) Similarly, provide an environment variable to allow configuration for a tool that uses TTY_LINK_HYPERLINK=never |
The official mechanism would be to query the In the mean time, adding an parameter would be a good stop-gap. |
This sentiment is not universally appreciated. See the comments from the kitty terminal issue in regards to hyperlinks.
Further, there are more direct downsides to using
It feels rather heavy-handed solution for such a small library to employ. I'd rather rely on environment variables and do the best-approximated feature detection possible. I don't want perfect accuracy, if I can detect let's say Would you have time to provide help with identifying terminals with hyperlinks support and their env variables? |
Released
|
Describe the problem
Alacritty, Kitty, and KDE's Konsole all support the hyperlink escape code. It's not just iTerm & VTE based terminals.
Steps to reproduce the problem
Actual behaviour
To print out the hyperlink.
Expected behaviour
Fallback output was printed instead.
Describe your environment
The text was updated successfully, but these errors were encountered: