Skip to content
Permalink
Browse files

Merge pull request #5535

e1016bc password: do not use line input on windows (moneromooo-monero)
  • Loading branch information...
fluffypony committed May 15, 2019
2 parents 1607419 + e1016bc commit 5e80b3c3ef10e8a9c33d73131d56db12b8824b43
Showing with 1 addition and 5 deletions.
  1. +1 −5 src/common/password.cpp
@@ -57,7 +57,7 @@ namespace

DWORD mode_old;
::GetConsoleMode(h_cin, &mode_old);
DWORD mode_new = mode_old & ~(hide_input ? ENABLE_ECHO_INPUT : 0);
DWORD mode_new = mode_old & ~((hide_input ? ENABLE_ECHO_INPUT : 0) | ENABLE_LINE_INPUT);
::SetConsoleMode(h_cin, mode_new);

bool r = true;
@@ -76,10 +76,6 @@ namespace
break;
}
else if (ucs2_ch == L'\r')
{
continue;
}
else if (ucs2_ch == L'\n')
{
std::cout << std::endl;
break;

0 comments on commit 5e80b3c

Please sign in to comment.
You can’t perform that action at this time.