Merge pull request #5536

1a367d6 simplewallet: lock console on inactivity (moneromooo-monero)
This commit is contained in:
luigi1111 2019-09-04 09:18:38 -05:00
commit 23547e6ed6
No known key found for this signature in database
GPG key ID: F4ACA0183641E010
10 changed files with 577 additions and 149 deletions

View file

@ -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);
}