Merge pull request #4882

6bfcc573 scoped_message_writer: protect all std::cout usage from readline (moneromooo-monero)
This commit is contained in:
Riccardo Spagni 2018-12-04 17:30:29 +02:00
commit 302fd80826
No known key found for this signature in database
GPG key ID: 55432DF31CCD4FCD

View file

@ -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();