Merge pull request #4588

b215ea9f password: fix backspace outputting ^? on linux on echoing secure input (moneromooo-monero)
This commit is contained in:
Riccardo Spagni 2018-10-15 13:47:27 +02:00
commit 3c36a6a227
No known key found for this signature in database
GPG key ID: 55432DF31CCD4FCD

View file

@ -158,6 +158,13 @@ namespace
if (!aPass.empty())
{
aPass.pop_back();
if (!hide_input)
std::cout << "\b\b\b \b\b\b" << std::flush;
}
else
{
if (!hide_input)
std::cout << "\b\b \b\b" << std::flush;
}
}
else