keywait man page
keywait — pause and wait for input.
keywait [options] [prompt]
Pause and wait for keyboard input. A prompt can be displayed to the user, and the timeout to wait for keyboard input can be specified. Before waiting any pending input is automatically flushed. If no timeout is specified then keywait will wait forever.
Specify number of seconds to wait for input.
Outputs help screen for the user.
Returns 0 if keyboard entry was received. 1 if timeout. 2 for any error.
keywait was written by David Sugar <email@example.com>.
Report bugs to firstname.lastname@example.org or email@example.com.
Copyright © 2013-2014 David Sugar, Tycho Softworks.
This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.