added image previews using ueberzug

This commit is contained in:
nova
2025-08-06 22:25:39 +02:00
parent ec4d2dec8b
commit 7ab04a5a87
4 changed files with 50 additions and 2 deletions

5
main.c
View File

@@ -10,6 +10,7 @@
#include "defines.h"
#include "colors.h"
#include "interactions.h"
#include "file_previews.h"
unsigned int terminal_height;
unsigned int terminal_width;
@@ -188,7 +189,9 @@ void init() {
}
threading_init(); /* found in threading.c */
colors_init();
colors_init(); /* in colors.c */
ueberzug_init(); /* in file_previews.c */
ESCDELAY = 10;
char *start_path = getcwd(NULL, 0);
setenv("START_PATH", start_path, 0);