diff options
Diffstat (limited to 'include/console_countdown.h')
-rw-r--r-- | include/console_countdown.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/include/console_countdown.h b/include/console_countdown.h new file mode 100644 index 0000000000..cb46964bc4 --- /dev/null +++ b/include/console_countdown.h @@ -0,0 +1,11 @@ +#ifndef __CONSOLE_COUNTDOWN_H +#define __CONSOLE_COUNTDOWN_H + +#define CONSOLE_COUNTDOWN_SILENT (1 << 0) +#define CONSOLE_COUNTDOWN_ANYKEY (1 << 1) +#define CONSOLE_COUNTDOWN_RETURN (1 << 3) +#define CONSOLE_COUNTDOWN_CTRLC (1 << 4) + +int console_countdown(int timeout_s, unsigned flags, char *out_key); + +#endif /* __CONSOLE_COUNTDOWN_H */ |