aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authormoneromooo-monero <moneromooo-monero@users.noreply.github.com>2018-11-21 12:46:11 +0000
committermoneromooo-monero <moneromooo-monero@users.noreply.github.com>2018-11-21 12:48:43 +0000
commit6bfcc57395fb3ce0c00b35a07b3f6227fd2606de (patch)
tree555b0e3f34eff6cd72c46d9535cb41722dde2587 /src
parentMerge pull request #4781 (diff)
downloadmonero-6bfcc57395fb3ce0c00b35a07b3f6227fd2606de.tar.xz
scoped_message_writer: protect all std::cout usage from readline
Diffstat (limited to 'src')
-rw-r--r--src/common/scoped_message_writer.h2
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();