password: flush cout when prompting for password without newline

This commit is contained in:
moneromooo-monero 2018-06-07 13:48:30 +01:00 committed by wowario
parent 5a0de0115d
commit c579994530
No known key found for this signature in database
GPG Key ID: 24DCBE762DE9C111

View File

@ -164,7 +164,7 @@ namespace
while (true)
{
if (message)
std::cout << message <<": ";
std::cout << message <<": " << std::flush;
if (!read_from_tty(pass1))
return false;
if (verify)