aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJethro Grassie <jtg@xtrabass.com>2017-07-07 15:40:32 -0400
committerJethro Grassie <jtg@xtrabass.com>2017-07-09 09:50:04 -0400
commit6955976b2d3f25205fc9fd065744d69ba64cccfa (patch)
treee50668c98406c0466883839c65e0c5ee7392c2f2 /src
parentMerge pull request #2130 (diff)
downloadmonero-6955976b2d3f25205fc9fd065744d69ba64cccfa.tar.xz
Add various readline related fixes
- Add missing unbind key - Fix colored messages - Add command completion - Preserve last command input - Fix cursor position issues - Fix trailing whitespace in commands - Synchronize set_prompt
Diffstat (limited to 'src')
-rw-r--r--src/simplewallet/simplewallet.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/simplewallet/simplewallet.cpp b/src/simplewallet/simplewallet.cpp
index 6d5ebc25a..c740b399c 100644
--- a/src/simplewallet/simplewallet.cpp
+++ b/src/simplewallet/simplewallet.cpp
@@ -65,8 +65,7 @@
#ifdef HAVE_READLINE
#include "readline_buffer.h"
#define PAUSE_READLINE() \
- rdln::suspend_readline pause_readline; \
- std::cout << std::endl
+ rdln::suspend_readline pause_readline;
#else
#define PAUSE_READLINE()
#endif
@@ -195,6 +194,7 @@ namespace
}
else
{
+ PAUSE_READLINE();
set_console_color(m_color, m_bright);
std::cout << m_oss.str();
reset_console_color();