opening files using mimetypes defined in config.h

This commit is contained in:
nova
2025-06-18 04:08:02 +02:00
parent 1485d69cad
commit f99035629a
10 changed files with 106 additions and 41 deletions

View File

@ -14,6 +14,8 @@ extern file *lft_content;
extern file *rgt_content;
extern char *top_content;
extern char *rgt_buffer;
extern char *btm_buffer;
extern unsigned long lft_file_count;
extern unsigned long mid_file_count;
@ -44,9 +46,15 @@ void window_top(WINDOW *win){
}
void window_btm(WINDOW *win){
werase(win);
unsigned long local_width;
unsigned long local_height;
getmaxyx(win, local_height, local_width);
if (pthread_mutex_trylock(&mutex_btm)) {
mvwprintw(win, local_height/2, local_width/2, "LOADING");
status |= STATUS_UPDATE_SCREEN_0;
pthread_mutex_unlock(&mutex_rgt);
} else {
mvwprintw(win, 0, 0, "%s", btm_buffer);
pthread_mutex_unlock(&mutex_btm);
}
}