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

Terminal color detection on Linux is wrong #247

Open
meator opened this issue Jan 19, 2024 · 0 comments
Open

Terminal color detection on Linux is wrong #247

meator opened this issue Jan 19, 2024 · 0 comments

Comments

@meator
Copy link

meator commented Jan 19, 2024

Hi. Colored logs weren't shown on my terminal (alacritty). I have tried to set loguru::g_colorlogtostderr to both true and false, but nothing. I have investigated this further and then I came across this:

https://github.com/emilk/loguru/blob/master/loguru.cpp#L231-L243

That's not how you detect color support in terminals. (N)Curses should be used. The current solution is a hack.

If that is not feasible, the list should at least be expanded. I could make a PR for that.

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

No branches or pull requests

1 participant