simplewallet: lock console on inactivity

This commit is contained in:
moneromooo-monero 2019-05-06 08:44:50 +00:00
parent 85014813cf
commit 1a367d6a22
No known key found for this signature in database
GPG key ID: 686F07454D6CEFC3
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);
}