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

This commit is contained in:
moneromooo-monero
2018-10-10 08:57:41 +00:00
parent 77ef8c1839
commit b215ea9f56

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