Skip to content
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

Detect terminal color support #57

Closed
ashaduri opened this issue Jul 15, 2020 · 2 comments
Closed

Detect terminal color support #57

ashaduri opened this issue Jul 15, 2020 · 2 comments
Labels

Comments

@ashaduri
Copy link

Hi,

Right now if I run a flexi_logger-enabled application from terminal (on Linux) I get a properly colored output.
However, if I launch it from another application (without terminal) and capture its output to show it in GUI, I still get color escape sequences in the text, and the displayed text is garbled in the GUI.

I think flexi_logger should use ::atty::is(::atty::Stream::Stdout) or similar to check whether colored output is actually supported.

Thanks!

@emabee emabee added the bug label Jul 20, 2020
@emabee
Copy link
Owner

emabee commented Jul 20, 2020

Thanks for the proposal! It is incorparated in version 0.15.8.

@emabee emabee closed this as completed Jul 20, 2020
@ashaduri
Copy link
Author

Thanks for such a quick response!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants