refractoring & hidden files functionality

This commit is contained in:
nova
2025-02-26 22:42:51 +01:00
parent 8cf1918b0d
commit c927039b68
5 changed files with 20 additions and 27 deletions

2
main.c
View File

@ -6,6 +6,7 @@
unsigned int terminal_height;
unsigned int terminal_width;
unsigned int settings;
unsigned long file_count;
unsigned long longest_name;
char **content_l; //content of parent dir, used in left window
@ -22,6 +23,7 @@ int main() {
WINDOW *winl = newwin(terminal_height, terminal_width/3, terminal_height, (terminal_width/3));
WINDOW *winm = newwin(terminal_height, terminal_width/3, 0, 0);
WINDOW *winr = newwin(terminal_height, terminal_width/3, terminal_height, ((terminal_width/3)*2));
settings = 1; //bit 0 = show_hidden_files
while((ch = wgetch(winm)) != 'q'){