Lines Matching refs:current_mode
32 struct termios current_mode;
47 current_mode = keyboard->saved_mode;
49 current_mode.c_iflag &=
51 current_mode.c_oflag &= ~OPOST;
52 current_mode.c_lflag &= ~(ECHO|ECHONL|ICANON|ISIG|IEXTEN);
53 current_mode.c_cflag &= ~(CSIZE|PARENB);
54 current_mode.c_cflag |= CS8;
56 current_mode.c_cc[VMIN] = 1;
57 current_mode.c_cc[VTIME] = 0;
58 if (tcsetattr(fd, TCSAFLUSH, ¤t_mode) < 0) {