This commit is contained in:
2026-02-04 19:59:37 -06:00
commit 31d59fd0fc
7 changed files with 169 additions and 0 deletions

22
hacks.h Normal file
View File

@@ -0,0 +1,22 @@
#ifndef HACKS_H
#define HACKS_H
/*
* Ugly hack to print a message in the center column by taking half its length
* and subtracting that from the desired X position.
*/
#define midprint(y, x, len, message) mvwprintw(stdscr, y, x - (len * 0.5), message)
/*
* @brief string pointer with manual length stuck to it
*/
typedef struct {
char *s;
int l;
} lstring_t;
struct xy {
int x, y;
};
#endif