| 46 | bool color_ostream::log_errors_to_stderr = false; |
| 47 | |
| 48 | void color_ostream::flush_buffer(bool flush) |
| 49 | { |
| 50 | auto buffer = buf(); |
| 51 | auto str = buffer->str(); |
| 52 | |
| 53 | if (!str.empty()) { |
| 54 | add_text(cur_color, buffer->str()); |
| 55 | buffer->str(std::string()); |
| 56 | } |
| 57 | |
| 58 | if (flush) |
| 59 | flush_proxy(); |
| 60 | } |
| 61 | |
| 62 | void color_ostream::begin_batch() |
| 63 | { |