-
Notifications
You must be signed in to change notification settings - Fork 53
Open
Description
Hi!
I've found this library as an excellent solution to colorize the logging output. However, when the stdout/stderr is redirected somewhere else (./a.out > log.txt for example) the final output is still mangled with terminal special characters as an opposite expected behavior.
It's a common practice in Unix to check isatty function before trying to colorize, see man for more. Moreover the isatty function is associated with terminal as like as this crate, so it may be useful to add it.
I can implement this functionality if you agree. Thoughts?
Metadata
Metadata
Assignees
Labels
No labels