Skip to content
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

Feature: Support OSC8 escape codes for real hyperlinks #237

Open
zachriggle opened this issue Jan 22, 2021 · 3 comments
Open

Feature: Support OSC8 escape codes for real hyperlinks #237

zachriggle opened this issue Jan 22, 2021 · 3 comments
Labels
enhancement New feature or request

Comments

@zachriggle
Copy link

iTerm2 supports OSC8 hyperlinks, allowing you to have Cmd+Click'able links with separate display text.

I'm not sure how it would look in go, but in Python it looks like this:

url = ...
text_displayed = ...
f'\x1b]8;;{url}\x07{text_displayed}\x1b]8;;\x07'

For terminals that do not support OSC8, there is no change in the visible rendering as best I know.

@muesli muesli added the enhancement New feature or request label Jan 28, 2021
@just1a-person
Copy link

This would be great! Even Windows Terminal supports this:

Hyperlinks in Windows Terminal

@deicon
Copy link
Contributor

deicon commented Nov 18, 2022

Just found this, which, if finished probably makes my PR charmbracelet/glamour#204 obsolete

@ssbarnea
Copy link

ssbarnea commented Nov 8, 2024

https://github.com/Alhadis/OSC8-Adoption/ is also tracking adoption of OSC8.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

5 participants