121476Smckusick /* 2*60840Sbostic * Copyright (c) 1980, 1993 3*60840Sbostic * The Regents of the University of California. All rights reserved. 433690Sbostic * 542589Sbostic * %sccs.include.redist.c% 621476Smckusick */ 721476Smckusick 821476Smckusick #ifndef lint 9*60840Sbostic static char sccsid[] = "@(#)flush_in.c 8.1 (Berkeley) 05/31/93"; 1033690Sbostic #endif /* not lint */ 1121476Smckusick 1221476Smckusick # include <curses.h> 1321476Smckusick 1421476Smckusick /* 1521476Smckusick * flush_in: 1621476Smckusick * Flush all pending input. 1721476Smckusick */ flush_in()1821476Smckusickflush_in() 1921476Smckusick { 2021476Smckusick # ifdef TIOCFLUSH 2121476Smckusick ioctl(fileno(stdin), TIOCFLUSH, NULL); 2221476Smckusick # else TIOCFLUSH 2321476Smckusick crmode(); 2421476Smckusick # endif TIOCFLUSH 2521476Smckusick } 26