password: fix backspace outputting ^? on linux on echoing secure input

release-v0.5.1
moneromooo-monero 6 years ago
parent 77ef8c1839
commit b215ea9f56
No known key found for this signature in database
GPG Key ID: 686F07454D6CEFC3

@ -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

Loading…
Cancel
Save