diff options
| author | Martin Jeřábek | 2020-09-04 12:27:16 +0200 |
|---|---|---|
| committer | Martin Hořeňovský | 2020-09-07 11:53:45 +0200 |
| commit | 8851e779cf43e206c8eeb24229e26d8f6608e3cf (patch) | |
| tree | 179b1778a05dba516fb55d1ed5ef0c59e442d3a8 /src/catch2/catch_config.cpp | |
| parent | 2d4f8ac8e625cd70eb3b3eae873914382a5348c7 (diff) | |
| download | catch3-8851e779cf43e206c8eeb24229e26d8f6608e3cf.tar.gz | |
console colour: fix unintended colouring of user's stderr on POSIX
At some places, the colour reset code is printed after a newline.
Since the default output buffering to console is line-based, the reset
code is not actually written out. If messages from user code are printed
to stderr (different stream, same console), they are printed before
the colour reset code, and thus they are coloured.
Explicitly flushing the stream after writing the colour escape code solves
this.
Diffstat (limited to 'src/catch2/catch_config.cpp')
0 files changed, 0 insertions, 0 deletions