$ cons ->Flush
cons
Flushes the console input buffer. All the events in the buffer are discarded. Returns undef on error, a nonzero value on success.
undef
Copyright © 2001 O'Reilly & Associates. All rights reserved.