Lines Matching refs:tty
696 int tty;
706 tty = fileno (stdin);
709 tcgetattr (tty, &original_termios);
710 tcgetattr (tty, &ttybuff);
713 ioctl (tty, TCGETA, &original_termio);
714 ioctl (tty, TCGETA, &ttybuff);
750 tcsetattr (tty, TCSANOW, &ttybuff);
752 tcflow (tty, TCOOFF);
753 tcflow (tty, TCOON);
757 ioctl (tty, TCSETA, &ttybuff);
759 ioctl (tty, TCXONC, 1);
765 ioctl (tty, TIOCGETP, &ttybuff);
778 ioctl (tty, TIOCLGET, &flags);
781 ioctl (tty, TIOCLSET, &flags);
789 ioctl (tty, TIOCGETC, &original_tchars);
806 ioctl (tty, TIOCSETC, &temp);
814 ioctl (tty, TIOCGLTC, &original_ltchars);
821 ioctl (tty, TIOCSLTC, &temp);
827 ioctl (tty, TIOCSETN, &ttybuff);
831 /* Restore the tty settings back to what they were before we started using
836 int tty;
844 tty = fileno (stdin);
847 tcsetattr (tty, TCSANOW, &original_termios);
850 ioctl (tty, TCSETA, &original_termio);
852 ioctl (tty, TIOCGETP, &ttybuff);
854 ioctl (tty, TIOCSETN, &ttybuff);
857 ioctl (tty, TIOCSETC, &original_tchars);
861 ioctl (tty, TIOCSLTC, &original_ltchars);
865 ioctl (tty, TIOCLSET, &original_lmode);