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

Support for Windows Terminal HyperLinks #160

Closed
bluemodus-acoats opened this issue Dec 9, 2020 · 1 comment
Closed

Support for Windows Terminal HyperLinks #160

bluemodus-acoats opened this issue Dec 9, 2020 · 1 comment
Labels

Comments

@bluemodus-acoats
Copy link

I would be great to be able to use the Markdown like syntax to create clickable WIndows Hyperlinks.

https://devblogs.microsoft.com/commandline/windows-terminal-preview-1-4-release/#hyperlink-support

@patriksvensson
Copy link
Contributor

@bluemodus-acoats Thanks for the suggestion, but this is already supported. See dotnet example links for an example.

if (AnsiConsole.Capabilities.SupportLinks)
{
    AnsiConsole.MarkupLine("[link=https://patriksvensson.se]Click to visit my blog[/]!");
}
else
{
    AnsiConsole.MarkupLine("[red]It looks like your terminal doesn't support links[/]");
    AnsiConsole.MarkupLine("[yellow](╯°□°)╯[/]︵ [blue]┻━┻[/]");
}

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

No branches or pull requests

2 participants