mirror of
https://github.com/monero-project/monero.git
synced 2025-12-30 14:40:48 -08:00
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
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user