mirror of
https://codeberg.org/anoncontributorxmr/monero.git
synced 2024-11-23 16:02:24 +00:00
scoped_message_writer: pause readline to match simplewallet
This commit is contained in:
parent
181a008aa3
commit
7ed5ab47ea
1 changed files with 9 additions and 0 deletions
|
@ -31,6 +31,14 @@
|
||||||
#include "misc_log_ex.h"
|
#include "misc_log_ex.h"
|
||||||
#include <iostream>
|
#include <iostream>
|
||||||
|
|
||||||
|
#ifdef HAVE_READLINE
|
||||||
|
#include "readline_buffer.h"
|
||||||
|
#define PAUSE_READLINE() \
|
||||||
|
rdln::suspend_readline pause_readline;
|
||||||
|
#else
|
||||||
|
#define PAUSE_READLINE()
|
||||||
|
#endif
|
||||||
|
|
||||||
namespace tools
|
namespace tools
|
||||||
{
|
{
|
||||||
|
|
||||||
|
@ -99,6 +107,7 @@ public:
|
||||||
}
|
}
|
||||||
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