From dc8f6924b2c4e97f742a49942815e3b5ef50d675 Mon Sep 17 00:00:00 2001 From: moneromooo-monero Date: Wed, 10 Oct 2018 08:57:41 +0000 Subject: password: fix backspace outputting ^? on linux on echoing secure input --- src/common/password.cpp | 7 +++++++ 1 file changed, 7 insertions(+) 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 -- cgit v1.2.3