aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorHoward Chu <hyc@symas.com>2017-08-21 16:34:45 +0100
committerHoward Chu <hyc@symas.com>2017-08-22 08:30:04 +0100
commitc656dd0ede64c3c71a9a357c9354b5e3cdb94ce4 (patch)
tree3839ee58f1f4f975f6d52bab1b373d58b0a6a8e3 /src
parentSimplify readline support (diff)
downloadmonero-c656dd0ede64c3c71a9a357c9354b5e3cdb94ce4.tar.xz
Fix refresh counter display
Suspend readline when refreshing
Diffstat (limited to 'src')
-rw-r--r--src/simplewallet/simplewallet.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/simplewallet/simplewallet.cpp b/src/simplewallet/simplewallet.cpp
index 1811eeb3c..2ccb6c7e9 100644
--- a/src/simplewallet/simplewallet.cpp
+++ b/src/simplewallet/simplewallet.cpp
@@ -63,6 +63,10 @@
#include "wallet/wallet_args.h"
#include <stdexcept>
+#ifdef HAVE_READLINE
+#include "readline_buffer.h"
+#endif
+
using namespace std;
using namespace epee;
using namespace cryptonote;
@@ -1835,6 +1839,10 @@ bool simple_wallet::refresh_main(uint64_t start_height, bool reset)
if (reset)
m_wallet->rescan_blockchain(false);
+#ifdef HAVE_READLINE
+ rdln::suspend_readline pause_readline;
+#endif
+
message_writer() << tr("Starting refresh...");
uint64_t fetched_blocks = 0;