26struct notcurses* nc = NULL;
27struct ncplane* stdplane = NULL;
31 notcurses_options ncopt;
32 memset(&ncopt, 0,
sizeof(ncopt));
34 nc = notcurses_init(&ncopt, stdout);
36 log_msg(ERROR,
"io_handler",
"Failed to initialize notcurses");
40 stdplane = notcurses_stdplane(nc);
42 log_msg(ERROR,
"io_handler",
"Failed to get standard plane");
48 ncplane_set_bg_rgb(stdplane, 0x281D10);
52 log_msg(ERROR,
"io_handler",
"Failed to initialize input handler");
58 log_msg(ERROR,
"io_handler",
"Failed to initialize output handler");
65 log_msg(ERROR,
"io_handler",
"Failed to initialize media output handler");
75 log_msg(ERROR,
"io_handler",
"Invalid callback for background task");
Defines common macros, types, and global variables for color schemes and utilities.
#define COMMON_SUCCESS
Common success return value.
bool run_background_task(void(*callback)(void))
Execute a function in a background thread.
int init_io_handler(void)
Initialize the IO handler.
void shutdown_io_handler(void)
Shutdown the IO handler.
Exposes functions for the IO-Handler.
void log_msg(const log_level_t level, const char *module, const char *format,...)
Logs a formatted message with a specified log level and module.
Header file for logging functionality of the game.
void shutdown_output_handler(void)
Shutdown the output handler.
bool init_output_handler()
Initialize the output handler.
Exposes functions for outputting to the console.
void start_simple_thread(void(*thread_func)(void))
Starts a new thread with the given function.
Exposes functions for the thread_handler.
Exposes functions for drawing the laoding screen.