diff options
author | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2017-08-11 13:38:18 +0100 |
---|---|---|
committer | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2017-08-11 13:38:18 +0100 |
commit | 7ed5ab47ea05900250e72bafb11d0e0fc3d180b9 (patch) | |
tree | 2b3091ad7d671bf5a2e7e6f88375fff6de1b1793 /src/common | |
parent | Merge pull request #2271 (diff) | |
download | monero-7ed5ab47ea05900250e72bafb11d0e0fc3d180b9.tar.xz |
scoped_message_writer: pause readline to match simplewallet
Diffstat (limited to 'src/common')
-rw-r--r-- | src/common/scoped_message_writer.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/common/scoped_message_writer.h b/src/common/scoped_message_writer.h index e31f8f0b2..804e9dbdf 100644 --- a/src/common/scoped_message_writer.h +++ b/src/common/scoped_message_writer.h @@ -31,6 +31,14 @@ #include "misc_log_ex.h" #include <iostream> +#ifdef HAVE_READLINE + #include "readline_buffer.h" + #define PAUSE_READLINE() \ + rdln::suspend_readline pause_readline; +#else + #define PAUSE_READLINE() +#endif + namespace tools { @@ -99,6 +107,7 @@ public: } else { + PAUSE_READLINE(); set_console_color(m_color, m_bright); std::cout << m_oss.str(); epee::reset_console_color(); |