WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content

Terminal color detection on Linux is wrong #247

@meator

Description

@meator

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions