diff options
Diffstat (limited to 'src/console.h')
-rw-r--r-- | src/console.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/console.h b/src/console.h index 22cf9b6..d8d270d 100644 --- a/src/console.h +++ b/src/console.h @@ -2,6 +2,7 @@ #define IMV_CONSOLE #include <stdbool.h> +#include <unistd.h> struct imv_console; @@ -33,6 +34,9 @@ bool imv_console_key(struct imv_console *console, const char *key); /* What is the console prompt's current text? */ const char *imv_console_prompt(struct imv_console *console); +/* What is the console prompt's current cursor position? (bytes into UTF-8 string) */ +size_t imv_console_prompt_cursor(struct imv_console *console); + /* What is the output history of the console? */ const char *imv_console_backlog(struct imv_console *console); |