colored
colored copied to clipboard
(Rust) Coloring terminal so simple you already know how to do it !
This might not be your problem at all. I'm almost sure that is actually mine, but if that's the case, it would be nice to include some documentation on how...
I'm struggling to get colors working on Mac OS (Catalina) when running through Terminal. I can get other CLIs with colors to display (e.g. ls, git, etc.), but colors coming...
I can read the style on a ColoredString and analyze it, but there's no way to easily copy that style to another string, or build up a style dynamically before...
`ShouldColorize::from_env()` completly ignores wether it runs in an environment that is capable of displaying colors or not and always generates color control codes. Steps to reproduce: 1. Write a test...
Why not implement this? ```rust impl Colorize for T { fn foo(&self) -> ColoredString { Colorize::foo(&self.to_string()) } } ``` Note that this will also automatically cover all types that implement...
It would be helpful if you could mention the MSRV for this crate and also enforce that in Travis. Thanks :)
Sometime we need to colorize some numbers, for example: ``` println!("balance:{}", 100); ``` It will be better if we can write something like this: ``` 100.red(); 100.5.yellow() ```
`set_virtual_terminal` was changed in https://github.com/mackwic/colored/pull/68 to never return an error - this is probably incorrect, as the underlying Win32 functions can definitely return errors. Error handling grabbed from https://github.com/borntyping/rust-simple_logger/pull/11
It is showing numbers rather than color. in this case `blue`  Though i have added control::set_virtual_terminal(true); in my source file. 