-
-
Notifications
You must be signed in to change notification settings - Fork 45
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 CLICOLOR and CLICOLOR_FORCE #41
Comments
I'm not so sure about it. And it is certainly not the only thing in this space. For example, folks requested I am still not sure if supporting |
I agree, I hadn't heard of As a user I would be happy to run a configuration function at the start of How about this? fn main() {
termcolor::enable_color(termcolor::Enable::AutoClicolor);
... You could have options like |
Though, feel free to close this if you like. I decided to use the |
Yes, because it isn't as portable as this crate. I have always advocated that if you don't need to support the Windows console APIs, then there are much simpler crates out there. But yeah, if you aren't using this and there's no use case for it, then I'm going to close it. But if folks want to argue in favor of something like this, there are some thorny issues involved. And personally, I'm not a huge fan of adding more API complexity with global switches. |
FWIW, I don't agree with this characterization of that issue. |
FWIW
I dunno if I'd say it is simpler... // ansi_term
println!("This is in red: {}", Red.paint("a red string"));
// colored
println!("This is in red: {}", "a red string".red()); But I'll give them points for the British spelling! :-P I wish someone would make a macro like this: println_colour!("This is in red: {<red>}a red string{</>}"); You know, syntax bikeshed and everything but it's pretty annoying that you can't just put the colour formatting in the format string. Anyway! I've wasted enough of your time, bye! |
Yes, only recent versions of Windows support terminal colors through ANSI escape codes.
I didn't say |
Oh sorry I misread. |
It would be good to support
CLICOLOR
andCLICOLOR_FORCE
as described here. It's the closest thing to a standard for controlling colour output that exists and is fairly popular.The text was updated successfully, but these errors were encountered: