5#if defined(HAVE_CONFIG_H)
6#include <config/bitcoin-config.h>
25 HANDLE hStdin = GetStdHandle(STD_INPUT_HANDLE);
27 GetConsoleMode(hStdin, &mode);
29 mode &= ~ENABLE_ECHO_INPUT;
31 mode |= ENABLE_ECHO_INPUT;
33 SetConsoleMode(hStdin, mode);
36 tcgetattr(STDIN_FILENO, &tty);
42 (void)tcsetattr(STDIN_FILENO, TCSANOW, &tty);
48 return _isatty(_fileno(stdin));
50 return isatty(fileno(stdin));
64 return poll(&fds, 1, 0) == 1;
void SetStdinEcho(bool enable)