diff options
| author | verdant <im@verdant.ee> | 2026-07-28 17:37:44 +0800 |
|---|---|---|
| committer | verdant <im@verdant.ee> | 2026-07-28 17:38:21 +0800 |
| commit | 76b479661ae9992932044f9137f2f6d89d9e078b (patch) | |
| tree | 499a7621ff15649c0ee20dbfb0650ff5324e003f /fm.h | |
| parent | a16f3b0731d4d9d4b1094a3b528426336e287ef9 (diff) | |
| download | sf-76b479661ae9992932044f9137f2f6d89d9e078b.tar.gz sf-76b479661ae9992932044f9137f2f6d89d9e078b.zip | |
Print permission infomation on the status bar
Diffstat (limited to 'fm.h')
| -rw-r--r-- | fm.h | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -5,6 +5,7 @@ #include <linux/limits.h> #include <ncurses.h> #include <stdbool.h> +#include <sys/stat.h> #include "wm.h" @@ -16,6 +17,7 @@ typedef struct { char name[256]; int is_dir; + char permission[11]; } file_item; typedef struct { @@ -62,5 +64,6 @@ int open_with_editor(char **argv); void magic_init(void); void magic_cleanup(void); void create_status_bar_win(terminal *t); -void draw_status_bar(window *bar_win, const char *cwd); +void draw_status_bar(window *bar_win, const char *cwd, char permission[11]); + #endif /* SF_FM_H */ |
