Lines Matching refs:ttbuf
108 static struct termio ttbuf;
110 static struct sgttyb ttbuf;
124 if (ioctl(Ifn, TCGETA, &ttbuf) >= 0) {
126 save_ttbuf = ttbuf;
127 ioctl(Ifn, TCGETA, &ttbuf);
128 ttbuf.c_iflag = IXOFF|IXON|ISTRIP;
129 ttbuf.c_cc[VMIN] = FIBUFSIZ > 64 ? 64 : FIBUFSIZ;
130 ttbuf.c_cc[VTIME] = 5;
131 ret = ioctl(Ifn, TCSETA, &ttbuf);
133 ttbuf = save_ttbuf;
136 if (ioctl(Ifn, TIOCGETP, &ttbuf) >= 0) {
138 save_ttbuf = ttbuf;
139 ttbuf.sg_flags = ANYP|CBREAK|TANDEM;
140 ret = ioctl(Ifn, TIOCSETP, &ttbuf);
142 ttbuf = save_ttbuf;
159 (void) ioctl(Ifn, TCSETA, &ttbuf);
161 (void) ioctl(Ifn, TIOCSETP, &ttbuf);