nonfunctional, working on seperate screen files

This commit is contained in:
2025-08-05 14:17:27 -04:00
parent 7d8f3d70b3
commit 1a90a816e5
5 changed files with 70 additions and 45 deletions

27
globals.h Normal file
View File

@@ -0,0 +1,27 @@
/* SPDX-License-Identifier: MIT */
#define MAX_SCREENS 2 /* size of screens array */
#ifndef GLOBALS_H /* header guard */
#define GLOBALS_H
enum Status {
STATUS_QUIT,
STATUS_WAITING,
STATUS_NEED_REFRESH
};
enum ActiveScreen {
HOME,
ERROR
};
struct Screen {
char name[20];
WINDOW *win;
void (*draw_screen)(struct Screen *, char *input); /* GETCH_TIMEOUT determines how often this is run, in ms */
};
struct Screen screens[MAX_SCREENS];
#endif