jorgebucaran/colorette

[Feature Request] Modifiers support `link`.

13OnTheCode opened this issue · 1 comments

const linkUrl = "https://www.example.com";
const linkText = "Visit Example Website";

const linkOutput = `\u001b]8;;${linkUrl}\u0007${linkText}\u001b]8;;\u0007`;

console.log(linkOutput);

In order to output linked text in the terminal, I have to do it this way. It would be great if colorette natively supported the link modifier.

I initially figured Colorette would focus solely on colors, not styles. But considering we already support italics and bold, which aren't colors, I'm starting to question that. Why don't you create a PR, and we can continue our discussion there? Does that work for you?