password: flush cout when prompting for password without newline

This commit is contained in:
moneromooo-monero 2018-06-07 13:48:30 +01:00
parent 8a7b3ff138
commit 2bb2c1b9d7
No known key found for this signature in database
GPG key ID: 686F07454D6CEFC3

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)