Display
MESSAGE
while waiting.
The message is used as a format string in
sprintf(3),
with a single argument, the number of seconds left.
Typical usage is therefore
"Press a key within %d seconds to ...".
If
MESSAGE
contains other format string directives, the behavior is undefined and
getkey
may crash.
If there is no time limit specified,
the number of seconds left is reported as 0.