diff options
author | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2018-10-10 08:57:41 +0000 |
---|---|---|
committer | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2018-10-10 08:58:40 +0000 |
commit | dc8f6924b2c4e97f742a49942815e3b5ef50d675 (patch) | |
tree | 1e15260d7e6df9449064779733c783b46dcaf23a /src/common/password.cpp | |
parent | Merge pull request #4540 (diff) | |
download | monero-dc8f6924b2c4e97f742a49942815e3b5ef50d675.tar.xz |
password: fix backspace outputting ^? on linux on echoing secure input
Diffstat (limited to '')
-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 |