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

Support always on colors #120

Closed
dufferzafar opened this issue Jun 30, 2022 · 2 comments · Fixed by #126
Closed

Support always on colors #120

dufferzafar opened this issue Jun 30, 2022 · 2 comments · Fixed by #126
Labels
good first issue Good for newcomers

Comments

@dufferzafar
Copy link

I'm using dbg() in a test that runs via ctest which prevents any colors from appearing - as ctest buffers stdout so it has the option of not showing any output if the tests passed.

Running the test binary without ctest gives proper colors.

Having a way to enable coloring regardless of isatty would be great. Something like #DBG_MACRO_COLOR_ALWAYS (akin to grep --color=always).

@thecaralice
Copy link

Related to #105

@sharkdp
Copy link
Owner

sharkdp commented Jul 11, 2022

Sounds like a good idea!

Something like #DBG_MACRO_COLOR_ALWAYS (akin to grep --color=always).

👍

@sharkdp sharkdp added the good first issue Good for newcomers label Jul 11, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants