MCPcopy Create free account
hub / github.com/KTH-RPL/dufomap / is_colorized

Function is_colorized

src/indicators.hpp:848–852  ·  view source on GitHub ↗

Say whether a given stream should be colorized or not. It's always true for ATTY streams and may be true for streams marked with colorize flag.

Source from the content-addressed store, hash-verified

846 // true for ATTY streams and may be true for streams marked with
847 // colorize flag.
848 inline
849 bool is_colorized(std::ostream& stream)
850 {
851 return is_atty(stream) || static_cast<bool>(stream.iword(colorize_index()));
852 }
853
854 //! Test whether a given `std::ostream` object refers to
855 //! a terminal.

Callers 1

indicators.hppFile · 0.85

Calls 2

is_attyFunction · 0.85
colorize_indexFunction · 0.85

Tested by

no test coverage detected