mirror of
https://git.wownero.com/wownero/wownero.git
synced 2024-08-15 01:03:23 +00:00
scoped_message_writer: protect all std::cout usage from readline
This commit is contained in:
parent
84dd674cd0
commit
6bfcc57395
1 changed files with 1 additions and 1 deletions
|
@ -101,13 +101,13 @@ public:
|
||||||
|
|
||||||
MCLOG_FILE(m_log_level, "msgwriter", m_oss.str());
|
MCLOG_FILE(m_log_level, "msgwriter", m_oss.str());
|
||||||
|
|
||||||
|
PAUSE_READLINE();
|
||||||
if (epee::console_color_default == m_color)
|
if (epee::console_color_default == m_color)
|
||||||
{
|
{
|
||||||
std::cout << m_oss.str();
|
std::cout << m_oss.str();
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
PAUSE_READLINE();
|
|
||||||
set_console_color(m_color, m_bright);
|
set_console_color(m_color, m_bright);
|
||||||
std::cout << m_oss.str();
|
std::cout << m_oss.str();
|
||||||
epee::reset_console_color();
|
epee::reset_console_color();
|
||||||
|
|
Loading…
Reference in a new issue