Lines Matching defs:tty
140 * This must be done after every command: if the tty gets into raw or
164 struct termios tty, tty_normal;
166 struct termio tty, tty_normal;
169 struct sgttyb tty, tty_normal;
177 (void) tcgetattr(SHOUT, &tty);
181 tty_normal = tty;
182 tty.c_iflag &= ~INLCR;
183 tty.c_oflag &= ~ONLCR;
185 (void) xtcsetattr(SHOUT, TCSANOW, &tty);
187 (void) ioctl(SHOUT, TCSETAW, (ioctl_t) &tty);
196 (void) ioctl(SHIN, TIOCGETP, (ioctl_t) & tty);
197 tty_normal = tty;
198 tty.sg_flags &= ~CRMOD;
199 (void) ioctl(SHIN, TIOCSETN, (ioctl_t) & tty);
208 * Push string contents back into tty queue
216 struct termios tty, tty_normal;
218 struct termio tty, tty_normal;
221 struct sgttyb tty, tty_normal;
229 (void) tcgetattr(SHOUT, &tty);
231 (void) ioctl(SHOUT, TCGETA, (ioctl_t) &tty);
233 tty_normal = tty;
234 tty.c_lflag &= ~(ECHOKE | ECHO | ECHOE | ECHOK | ECHONL |
240 (void) xtcsetattr(SHOUT, TCSANOW, &tty);
242 (void) ioctl(SHOUT, TCSETAW, (ioctl_t) &tty);
259 (void) ioctl(SHOUT, TIOCGETP, (ioctl_t) & tty);
260 tty_normal = tty;
261 tty.sg_flags &= ~ECHO;
262 (void) ioctl(SHOUT, TIOCSETN, (ioctl_t) & tty);
385 struct termios tty;
387 (void) tcgetattr(SHOUT, &tty);
389 struct termio tty;
391 (void) ioctl(SHOUT, TCGETA, (ioctl_t) &tty);
395 tty.c_lflag |= PENDIN;
399 (void) xtcsetattr(SHOUT, TCSANOW, &tty);
401 (void) ioctl(SHOUT, TCSETAW, (ioctl_t) &tty);
732 * Tabs in the input line cause trouble after a pushback. tty driver