$ cons ->GetEvents
cons
Returns the number of unread input events in the console's input buffer, or undef on error.
undef
Copyright © 2001 O'Reilly & Associates. All rights reserved.