diff options
| author | frosty <gabriel@bwaaa.monster> | 2026-02-23 00:37:47 -0500 |
|---|---|---|
| committer | frosty <gabriel@bwaaa.monster> | 2026-02-23 00:37:47 -0500 |
| commit | 3add5ed8899a8f4a442c249913602de6b7d60732 (patch) | |
| tree | e4f864b1f4d41aa258c8b678b00a7d9ed69640f7 /src/Globals.h | |
| download | insel-3add5ed8899a8f4a442c249913602de6b7d60732.tar.gz | |
billions must commit
Diffstat (limited to 'src/Globals.h')
| -rw-r--r-- | src/Globals.h | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/src/Globals.h b/src/Globals.h new file mode 100644 index 0000000..95a61ea --- /dev/null +++ b/src/Globals.h @@ -0,0 +1,34 @@ +#ifndef INSEL_GLOBALS_H +#define INSEL_GLOBALS_H + +#include <stddef.h> + +#define INITIAL_CAPACITY 64 +#define DEFAULT_LINES 10 + +typedef struct { + char **items; + size_t count; + size_t capacity; +} ItemList; + +typedef struct { + char *prompt; + int insensitive; +} Options; + +extern Options opts; +extern ItemList all_items; +extern ItemList filtered; +extern char *input; +extern size_t input_len; +extern size_t input_capacity; +extern int cursor; +extern int scroll; +extern int needs_redraw; +extern int tty_fd; +extern int tty_out_fd; +extern int orig_stdout; +extern int stdin_is_tty; + +#endif |
