Do not flush input buffer in UI creation

Fixes #3635
This commit is contained in:
Maxime Coste 2020-08-02 15:51:53 +10:00
parent e3f3297334
commit 39ad6a5bda

View File

@ -408,7 +408,7 @@ void NCursesUI::set_terminal_mode() const
attr.c_cflag |= CS8; attr.c_cflag |= CS8;
attr.c_cc[VMIN] = attr.c_cc[VTIME] = 0; attr.c_cc[VMIN] = attr.c_cc[VTIME] = 0;
tcsetattr(STDIN_FILENO, TCSAFLUSH, &attr); tcsetattr(STDIN_FILENO, TCSANOW, &attr);
fputs("\033=", stdout); fputs("\033=", stdout);
// force enable report focus events // force enable report focus events
fputs("\033[?1004h", stdout); fputs("\033[?1004h", stdout);