diff options
author | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2018-11-21 12:46:11 +0000 |
---|---|---|
committer | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2018-11-21 12:48:43 +0000 |
commit | 6bfcc57395fb3ce0c00b35a07b3f6227fd2606de (patch) | |
tree | 555b0e3f34eff6cd72c46d9535cb41722dde2587 /src/common/scoped_message_writer.h | |
parent | Merge pull request #4781 (diff) | |
download | monero-6bfcc57395fb3ce0c00b35a07b3f6227fd2606de.tar.xz |
scoped_message_writer: protect all std::cout usage from readline
Diffstat (limited to '')
-rw-r--r-- | src/common/scoped_message_writer.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/common/scoped_message_writer.h b/src/common/scoped_message_writer.h index d887a13c9..42f439ad8 100644 --- a/src/common/scoped_message_writer.h +++ b/src/common/scoped_message_writer.h @@ -101,13 +101,13 @@ public: MCLOG_FILE(m_log_level, "msgwriter", m_oss.str()); + PAUSE_READLINE(); if (epee::console_color_default == m_color) { std::cout << m_oss.str(); } else { - PAUSE_READLINE(); set_console_color(m_color, m_bright); std::cout << m_oss.str(); epee::reset_console_color(); |