menu: draw at 0,0
crispy-caesus crispy@crispy-caesus.eu
Fri, 14 Aug 2026 10:06:47 +0200
M
main.c
→
main.c
@@ -6,8 +6,8 @@ #include "term.h"
int main() { uint8_t ret = 0; - struct termios *old_term; - setup_term(old_term); + struct termios old_term; + setup_term(&old_term); static char *elements[] = {"hi", "hello", "what's up", "dang", "this is cool"};@@ -18,7 +18,7 @@ printf("ERROR: menu failed");
ret = 1; } - return_term(old_term); + return_term(&old_term); if (ret == 0) { printf("%s", elements[seli]); }