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.
| 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. |
no test coverage detected