aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorluigi1111 <luigi1111w@gmail.com>2018-06-25 15:10:54 -0500
committerluigi1111 <luigi1111w@gmail.com>2018-06-25 15:10:54 -0500
commit66212837ab43d1ff0b416f68357cb6092d0c4e8b (patch)
tree6ce23b3e0301b0ee77e46fb138d07a4f4954d262
parentMerge pull request #3955 (diff)
parentpassword: flush cout when prompting for password without newline (diff)
downloadmonero-66212837ab43d1ff0b416f68357cb6092d0c4e8b.tar.xz
Merge pull request #3957
2bb2c1b password: flush cout when prompting for password without newline (moneromooo-monero)
-rw-r--r--src/common/password.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/common/password.cpp b/src/common/password.cpp
index 9336a14fc..3ce2ba42a 100644
--- a/src/common/password.cpp
+++ b/src/common/password.cpp
@@ -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)