18 lines
322 B
C
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;
|
|
}
|