You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am having a hard time finding the Effect::from(&str) or Style::from(&str). Are they don't exist?
On the contrary, I can use AnsiColors::from(style.as_str())) to get color from a string.
Thanks! ❤️
The text was updated successfully, but these errors were encountered:
I don't think such a thing would be a very good API--if I pass Effect::from("blue") does this give blue foreground? blue background? if more complex formatting is added to disambiguate it becomes harder to parse and just generally kinda off-putting (imo). Would be interested in hearing what sort of behavior you'd be looking for
Hi.
I am having a hard time finding the
Effect::from(&str)
orStyle::from(&str)
. Are they don't exist?On the contrary, I can use
AnsiColors::from(style.as_str()))
to get color from a string.Thanks! ❤️
The text was updated successfully, but these errors were encountered: