-
Notifications
You must be signed in to change notification settings - Fork 97
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 "dim"/"faint" modifier #78
Comments
Hi. Just thinking out loud. We currently handle bold as 'font-weight: bold' for that span. If we have to set the CSS to a filter or opacity, that is also, ok, but could be configured as a non default option. @nwalters512 - How does that sound? |
I guess I would also prefer font weight. BTW, are there equvialent CSS classes for font-weight? The example does not show any. |
Lets go with font weight and add the classes to the example. |
If color manipulation can be done cleanly, e.g. no The ideal way to do it is with the brand-new color-mix, but it may be too new to use. Personally, I don't care as I'll not be using the built-in styles but style via classes where I can decide myself whether to use |
Released |
@silverwind - just saw this in my email. Sorry. I will look at your examples. |
Thanks, besides SGR2, SGR7 and SGR8 and the whole second row except SGR21 and hyperlink in the example could be improved. Maybe do it like iTerm and never output unknown escape sequences, which imho are never useful in a rendering. |
Hi all |
Consider the following code:
Per the "SGR" section where$n = 2$ on https://en.wikipedia.org/wiki/ANSI_escape_code, the modifier in use here is defined as "Faint, decreased intensity, or dim". I would expect this to render as something like either of the following:
However, it just prints the string
testing
, indicating that this library doesn't support this modifier.I'd be willing to open a PR if you'd accept one!
For reference, here's how a few other similar libraries implement this:
The text was updated successfully, but these errors were encountered: