1
0
mirror of https://github.com/mpv-player/mpv synced 2025-02-17 21:27:08 +00:00

terminal-unix: style fix

This commit is contained in:
nanahi 2024-03-13 21:51:37 -04:00 committed by Kacper Michajłow
parent 7c6bb9c37b
commit abc0b0e8c9

View File

@ -341,12 +341,12 @@ static void do_activate_getch2(void)
enable_kx(true); enable_kx(true);
struct termios tio_new; struct termios tio_new;
tcgetattr(tty_in,&tio_new); tcgetattr(tty_in, &tio_new);
tio_new.c_lflag &= ~(ICANON|ECHO); /* Clear ICANON and ECHO. */ tio_new.c_lflag &= ~(ICANON|ECHO); /* Clear ICANON and ECHO. */
tio_new.c_cc[VMIN] = 1; tio_new.c_cc[VMIN] = 1;
tio_new.c_cc[VTIME] = 0; tio_new.c_cc[VTIME] = 0;
tcsetattr(tty_in,TCSANOW,&tio_new); tcsetattr(tty_in, TCSANOW, &tio_new);
getch2_active = 1; getch2_active = 1;
} }