diff options
author | luigi1111 <luigi1111w@gmail.com> | 2019-09-04 09:18:38 -0500 |
---|---|---|
committer | luigi1111 <luigi1111w@gmail.com> | 2019-09-04 09:18:38 -0500 |
commit | 23547e6ed6c9f0dc694d55316540000b030bbb06 (patch) | |
tree | 51305d9a8d88427be4171908a4882a8dc03e7186 /contrib/epee/src | |
parent | Merge pull request #5793 (diff) | |
parent | simplewallet: lock console on inactivity (diff) | |
download | monero-23547e6ed6c9f0dc694d55316540000b030bbb06.tar.xz |
Merge pull request #5536
1a367d6 simplewallet: lock console on inactivity (moneromooo-monero)
Diffstat (limited to 'contrib/epee/src')
-rw-r--r-- | contrib/epee/src/readline_buffer.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/contrib/epee/src/readline_buffer.cpp b/contrib/epee/src/readline_buffer.cpp index 39369c43f..05322b693 100644 --- a/contrib/epee/src/readline_buffer.cpp +++ b/contrib/epee/src/readline_buffer.cpp @@ -71,6 +71,11 @@ rdln::linestatus rdln::readline_buffer::get_line(std::string& line) const { boost::lock_guard<boost::mutex> lock(sync_mutex); line_stat = rdln::partial; + if (!m_cout_buf) + { + line = ""; + return rdln::full; + } rl_callback_read_char(); if (line_stat == rdln::full) { @@ -224,3 +229,8 @@ static void remove_line_handler() rl_callback_handler_remove(); } +void rdln::clear_screen() +{ + rl_clear_screen(0, 0); +} + |