Working product with sustainable legacies

This commit is contained in:
2025-10-18 20:44:30 +02:00
parent 65a1c9f159
commit a392132fa9
8 changed files with 178 additions and 54 deletions

5
ui.c
View File

@@ -22,6 +22,7 @@ ui_init(void)
init_pair(UI_BLUE, COLOR_BLUE, COLOR_BLACK);
cbreak();
noecho();
nodelay(stdscr, TRUE);
nonl();
intrflush(stdscr, FALSE);
keypad(stdscr, TRUE);
@@ -34,12 +35,12 @@ void ui_end()
endwin();
}
void ui_string(size_t x, size_t y, char *s)
void ui_string(unsigned int x, unsigned int y, char *s)
{
mvaddstr(y, x, s);
}
void ui_char(size_t x, size_t y, char c)
void ui_char(unsigned int x, unsigned int y, char c)
{
mvaddch(y, x, c);
}