diff options
author | Riccardo Spagni <ric@spagni.net> | 2018-10-15 13:24:54 +0200 |
---|---|---|
committer | Riccardo Spagni <ric@spagni.net> | 2018-10-15 13:24:55 +0200 |
commit | ae5ca0bea1b24e1da5a5502fc128ea0d47f6cbeb (patch) | |
tree | b503c3dcca3d1a6148793b5de1afa513659f8e34 | |
parent | Merge pull request #4543 (diff) | |
parent | password: fix backspace outputting ^? on linux on echoing secure input (diff) | |
download | monero-ae5ca0bea1b24e1da5a5502fc128ea0d47f6cbeb.tar.xz |
Merge pull request #4549
dc8f6924 password: fix backspace outputting ^? on linux on echoing secure input (moneromooo-monero)
-rw-r--r-- | src/common/password.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/common/password.cpp b/src/common/password.cpp index a8d5141dc..e41c75088 100644 --- a/src/common/password.cpp +++ b/src/common/password.cpp @@ -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 |