tcsetattr
extern int tcsetattr(int fd, int option, const struct termios *termios);
tcsetattr(fFile, TCSANOW, &options);
if (tcsetattr(fFd, TCSANOW, &attr) < 0)
if (tcsetattr(0, TCSANOW, &tio) == -1) {
tcsetattr(con->tty_slave_fd, TCSANOW, &termios);
if (tcsetattr(inFD, TCSANOW, &termAttrs) != 0) {
tcsetattr(inFD, TCSANOW, &termAttrs);
tcsetattr(tin, TCSADRAIN, &tmp_tc);
if (tcsetattr(tin, TCSADRAIN, &tmp_tc) < 0)
tcsetattr(tin, TCSANOW, &tmp_tc);
(void) tcsetattr(pty, TCSANOW, &termbuf);
# define STTY(f, s) tcsetattr(f, TCSAFLUSH, (zvoid *) s)
err = tcsetattr(ffd, TCSANOW, &options);
changed = tcsetattr(fileno(stdin), TCSAFLUSH, &noEchoTermios) == 0;
tcsetattr(fileno(stdin), TCSAFLUSH, &termios);
if ((termAttrs != NULL && tcsetattr(master, TCSANOW, termAttrs) != 0)
(void)tcsetattr(input, TCSAFLUSH|TCSASOFT, &term);
while (tcsetattr(input, TCSAFLUSH|TCSASOFT, &oterm) == -1 &&
tcsetattr(fSlaveFD, TCSANOW, &tio);