From 9e420f7b82c894e077f5c9b7d7020ac3f55ce146 Mon Sep 17 00:00:00 2001 From: Kai Stevenson Date: Tue, 13 Jun 2023 21:41:35 -0700 Subject: created file for console related functions. will support scrolling the output and expanding lines --- src/console.h | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 src/console.h (limited to 'src/console.h') diff --git a/src/console.h b/src/console.h new file mode 100644 index 0000000..6a4d27f --- /dev/null +++ b/src/console.h @@ -0,0 +1,17 @@ +#ifndef +#define CONSOLE +#define RED "\033[0:31m" +#define GRN "\033[0:32m" +#define WHT "\033[0:37m" +struct ConsoleLine { + char* color; + char* content; + /* pointer to a function accepting a void pointer */ + void (*onInteract)(void*); +} consoleLine_t; +consoleLine_t init_consoleline(char* color, char* content); +void clear_screen(); +void draw_screen(); +void move_selection(int amount); +void interact_selected(); +#endif -- cgit v1.3.1