diff options
Diffstat (limited to 'osdep')
-rw-r--r-- | osdep/terminal.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/osdep/terminal.h b/osdep/terminal.h index db1e2a4dd2..80a0055499 100644 --- a/osdep/terminal.h +++ b/osdep/terminal.h @@ -23,6 +23,14 @@ #include <stdbool.h> #include <stdio.h> +#define TERM_ESC_GOTO_YX "\033[%d;%df" +#define TERM_ESC_HIDE_CURSOR "\033[?25l" +#define TERM_ESC_RESTORE_CURSOR "\033[?25h" + +#define TERM_ESC_CLEAR_SCREEN "\033[2J" +#define TERM_ESC_SAVE_SCREEN "\033[?1049h" +#define TERM_ESC_RESTORE_SCREEN "\033[?1049l" + struct input_ctx; /* Global initialization for terminal output. */ |