mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-06-06 21:58:57 -04:00
improved display of password request
This commit is contained in:
parent
a778128147
commit
42bf6b2b6a
1 changed files with 10 additions and 1 deletions
|
@ -159,9 +159,15 @@ void TerminalApiClient::data_tick()
|
||||||
enter_was_pressed = false;
|
enter_was_pressed = false;
|
||||||
// send echo
|
// send echo
|
||||||
if(ask_for_password)
|
if(ask_for_password)
|
||||||
|
{
|
||||||
std::cout << "*";
|
std::cout << "*";
|
||||||
|
std::cout.flush();
|
||||||
|
}
|
||||||
else
|
else
|
||||||
|
{
|
||||||
std::cout << (char) last_char;
|
std::cout << (char) last_char;
|
||||||
|
std::cout.flush();
|
||||||
|
}
|
||||||
|
|
||||||
//std::cout << "you pressed key " << (char) last_char << " as integer: " << last_char << std::endl;
|
//std::cout << "you pressed key " << (char) last_char << " as integer: " << last_char << std::endl;
|
||||||
}
|
}
|
||||||
|
@ -317,7 +323,10 @@ void TerminalApiClient::data_tick()
|
||||||
|
|
||||||
if(edge && ask_for_password)
|
if(edge && ask_for_password)
|
||||||
{
|
{
|
||||||
std::cout << "Enter the password for key " << key_name << std::endl;
|
std::cout << std::endl;
|
||||||
|
std::cout << std::endl;
|
||||||
|
std::cout << "Enter the password for key " << key_name << " : " ;
|
||||||
|
std::cout.flush() ;
|
||||||
}
|
}
|
||||||
|
|
||||||
if(ask_for_password && enter_was_pressed && !inbuf.empty())
|
if(ask_for_password && enter_was_pressed && !inbuf.empty())
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue