th/interactions.c
2025-03-01 13:13:16 +01:00

18 lines
417 B
C

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