-
-
Notifications
You must be signed in to change notification settings - Fork 126
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
Expose is_colorized #45
Comments
Hey @patlefort, Sorry for taking me so long to respond to you. Would you mind to elaborate a little bit on your use case? I don't quite understand why someone would like to check whether a stream is color capable or not? |
In the case of buffered output, if you want to buffer an output before sending it to a stream but I would like to know if it's safe to colorize it. Example: create an |
Hi, it would be useful if the is_colorized function would be exposed outside the implementation detail namespace. That way I can know if it's safe to colorize into a transitory string (via stringstream for example) before outputing that string to a maybe colorized stream.
Small aside: while technically according to the standard your "_internal" namespace is valid, I would avoid anything that starts with an underscore.
The text was updated successfully, but these errors were encountered: