th/interactions.c
2025-02-27 19:47:35 +01:00

18 lines
322 B
C

#include <curses.h>
#include <dirent.h>
#include <unistd.h>
void user_interactions(char *input, unsigned int *status, unsigned int *settings) {
if (*input == 'q') {
*status ^= 1;
} else if (*input == *"KEY_BACKSPACE") {
*settings ^= 1;
} else if (*input == 'a') {
*settings ^= 1;
}
else {
}
*status ^= 2;
}