diff options
Diffstat (limited to 'src/utils.c')
-rw-r--r-- | src/utils.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/utils.c b/src/utils.c index 5f19db0..a39b7df 100644 --- a/src/utils.c +++ b/src/utils.c @@ -813,3 +813,15 @@ child_wait (int *pfdin, int *pfdout, int pid) waitpid (pid, &stat, 0); return stat; } + +/* Display "Press any key to continue..." and wait for a key press. */ +void +press_any_key (void) +{ + fflush (stdout); + fputs (_("Press any key to continue..."), stdout); + fflush (stdout); + fgetc (stdin); + fflush (stdin); + fputs ("\r\n", stdout); +} |