-/* $NetBSD: flush_in.c,v 1.3 1995/04/22 10:08:51 cgd Exp $ */
+/* $NetBSD: flush_in.c,v 1.4 1995/04/28 23:09:08 mycroft Exp $ */
/*
* Copyright (c) 1980, 1993
#if 0
static char sccsid[] = "@(#)flush_in.c 8.1 (Berkeley) 5/31/93";
#else
-static char rcsid[] = "$NetBSD: flush_in.c,v 1.3 1995/04/22 10:08:51 cgd Exp $";
+static char rcsid[] = "$NetBSD: flush_in.c,v 1.4 1995/04/28 23:09:08 mycroft Exp $";
#endif
#endif /* not lint */
-# include <curses.h>
+# include <stdio.h>
+# include <termios.h>
/*
* flush_in:
*/
flush_in()
{
-# ifdef TIOCFLUSH
- ioctl(fileno(stdin), TIOCFLUSH, NULL);
-# else TIOCFLUSH
- crmode();
-# endif TIOCFLUSH
+ tcflush(fileno(stdin), TCIFLUSH);
}