Lines Matching refs:ttybuf
62 struct termios ttybuf;
83 if (tcgetattr(fileno(stdin), &ttybuf) < 0) {
87 c_erase = ttybuf.c_cc[VERASE];
88 c_kill = ttybuf.c_cc[VKILL];
90 ttybuf.c_cc[VERASE] = _POSIX_VDISABLE;
91 ttybuf.c_cc[VKILL] = _POSIX_VDISABLE;
98 extproc = ((ttybuf.c_lflag & EXTPROC) ? 1 : 0);
112 ttyset++, tcsetattr(fileno(stdin), TCSADRAIN, &ttybuf);
120 ttyset++, tcsetattr(fileno(stdin), TCSADRAIN, &ttybuf);
127 ttyset++, tcsetattr(fileno(stdin), TCSADRAIN, &ttybuf);
135 ttyset++, tcsetattr(fileno(stdin), TCSADRAIN, &ttybuf);
145 ttybuf.c_cc[VERASE] = c_erase;
146 ttybuf.c_cc[VKILL] = c_kill;
148 tcsetattr(fileno(stdin), TCSADRAIN, &ttybuf);