From 4e7e1e21b3eb29a5505dc69f668cf5f9481bd7d5 Mon Sep 17 00:00:00 2001 From: verdant Date: Mon, 3 Aug 2026 15:51:39 +0800 Subject: Add utils.h utils.c to provide get_input() Print the prompt at the status bar, handle character, backspace, enter and escape. Modify the variable buf in place. --- src/utils.h | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 src/utils.h (limited to 'src/utils.h') diff --git a/src/utils.h b/src/utils.h new file mode 100644 index 0000000..2e99a21 --- /dev/null +++ b/src/utils.h @@ -0,0 +1,9 @@ +#ifndef SF_UTILS_H +#define SF_UTILS_H + +#include "fm.h" +#include "wm.h" + +int get_input(const char *prompt, char *buf); + +#endif /* SF_UTILS_H */ -- cgit v1.2.3