mirror of
https://github.com/monero-project/monero.git
synced 2025-08-07 07:52:20 -04:00
simplewallet: lock console on inactivity
This commit is contained in:
parent
85014813cf
commit
1a367d6a22
10 changed files with 577 additions and 149 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue