refactoring via defines.h
This commit is contained in:
@ -1,17 +1,17 @@
|
||||
#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 ^= 1;
|
||||
*status ^= STATUS_QUIT_PROGRAM;
|
||||
} else if (*input == *"KEY_BACKSPACE") {
|
||||
*settings ^= 1;
|
||||
*settings ^= SETTINGS_HIDDEN_FILES;
|
||||
} else if (*input == 'a') {
|
||||
*settings ^= 1;
|
||||
*settings ^= SETTINGS_HIDDEN_FILES;
|
||||
}
|
||||
else {
|
||||
}
|
||||
*status ^= 2;
|
||||
*status ^= STATUS_RUN_BACKEND;
|
||||
}
|
||||
|
Reference in New Issue
Block a user