• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /macosx-10.10/bash-94.1.2/bash-3.2/lib/readline/

Lines Matching refs:tty

142    to get the tty settings. */
144 set_winsize (tty)
145 int tty;
150 if (ioctl (tty, TIOCGWINSZ, &w) == 0)
151 (void) ioctl (tty, TIOCSWINSZ, &w);
168 struct sgttyb sgttyb; /* Basic BSD tty driver information. */
230 get_tty_settings (tty, tiop)
231 int tty;
234 set_winsize (tty);
239 if (ioctl (tty, TIOCGETP, &(tiop->sgttyb)) < 0)
244 if (ioctl (tty, TIOCLGET, &(tiop->lflag)) == 0)
249 if (ioctl (tty, TIOCGETC, &(tiop->tchars)) == 0)
254 if (ioctl (tty, TIOCGLTC, &(tiop->ltchars)) == 0)
262 set_tty_settings (tty, tiop)
263 int tty;
268 ioctl (tty, TIOCSETN, &(tiop->sgttyb));
276 ioctl (tty, TIOCLSET, &(tiop->lflag));
284 ioctl (tty, TIOCSETC, &(tiop->tchars));
292 ioctl (tty, TIOCSLTC, &(tiop->ltchars));
385 # define GETATTR(tty, tiop) (tcgetattr (tty, tiop))
387 # define SETATTR(tty, tiop) (tcsetattr (tty, TCSANOW, tiop))
389 # define SETATTR(tty, tiop) (tcsetattr (tty, TCSADRAIN, tiop))
394 # define GETATTR(tty, tiop) (ioctl (tty, TCGETA, tiop))
395 # define SETATTR(tty, tiop) (ioctl (tty, TCSETAW, tiop))
485 _get_tty_settings (tty, tiop)
486 int tty;
493 ioctl_ret = GETATTR (tty, tiop);
518 get_tty_settings (tty, tiop)
519 int tty;
522 set_winsize (tty);
525 if (_get_tty_settings (tty, tiop) < 0)
536 _set_tty_settings (tty, tiop)
537 int tty;
540 while (SETATTR (tty, tiop) < 0)
550 set_tty_settings (tty, tiop)
551 int tty;
554 if (_set_tty_settings (tty, tiop) < 0)
564 tcflow (tty, TCOON);
567 tcflow (tty, TCOON); /* Simulate a ^Q. */
570 ioctl (tty, TCXONC, 1); /* Simulate a ^Q. */
659 int tty;
668 tty = fileno (rl_instream);
670 if (get_tty_settings (tty, &tio) < 0)
712 if (set_tty_settings (tty, &tio) < 0)
732 int tty;
740 tty = fileno (rl_instream);
747 if (set_tty_settings (tty, &otio) < 0)
936 int tty;
938 tty = fileno (rl_instream);
940 if (get_tty_settings (tty, &ttybuff) == 0)
954 /* Rebind all of the tty special chars that readline worries about back
962 /* Don't bother before we've saved the tty special chars at least once. */