Commit 65e1ef85 authored by Dominik Charousset's avatar Dominik Charousset

Always print newline for term::reset_endl

parent 2f12fda3
...@@ -135,6 +135,8 @@ bool is_tty(const std::ostream& out) { ...@@ -135,6 +135,8 @@ bool is_tty(const std::ostream& out) {
std::ostream& operator<<(std::ostream& out, term x) { std::ostream& operator<<(std::ostream& out, term x) {
if (is_tty(out)) if (is_tty(out))
set_term_color(out, tty_codes[static_cast<size_t>(x)]); set_term_color(out, tty_codes[static_cast<size_t>(x)]);
else if (x == term::reset_endl)
out << '\n';
return out; return out;
} }
......
Markdown is supported
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