We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
chalk.Green.NewStyle().Style("✗")
does not give the same output as:
chalk.Green.Color("✗")
The text was updated successfully, but these errors were encountered:
Hey, actually this is expected as when you create a new Style you initialize a background color of 0 which translates to \e[40m which is black.
\e[40m
So for the 2 cases the output will be: �[40m�[32m✗�[49m�[39m
�[40m�[32m✗�[49m�[39m
and
�[32m✗�[39m
Respectively.
Do you still want a fix to ignore the background property if it's not set?
Sorry, something went wrong.
ttacon
No branches or pull requests
does not give the same output as:
The text was updated successfully, but these errors were encountered: