- if (io == NULL)
- return;
-
-#ifdef HAVE_TERMIOS_H
- tcflush (fileno(io), TCOFLUSH);
-#else
-# ifdef HAVE_TERMIO_H
- if (ioctl (fileno(io), TCGETA, &tio) != -1)
- ioctl (fileno(io), TCSETA, &tio);
-# else
- if (ioctl (fileno(io), TIOCGETP, (char *) &tio) != -1)
- ioctl (fileno(io), TIOCSETP, (char *) &tio);
-# endif
-#endif