Commit 22db69d3 authored by Max Lyon's avatar Max Lyon
Browse files

flush cout when adding a new line character

parent c706bce6
......@@ -119,7 +119,10 @@ public:
if (_cnsl)
std::cout << _c; // print on the console
if (_c == '\n')
{
std::cout << std::flush;
line_strt_ = true;
}
}
void line_break(const bool _cnsl = true) { print('\n', _cnsl); }
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment