aboutsummaryrefslogtreecommitdiff
path: root/bb.h
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2020-02-23 19:48:24 -0800
committerBruce Hill <bruce@bruce-hill.com>2020-02-23 19:48:24 -0800
commit8888c23cadbcf0b958519fcaf8dd1869eb399449 (patch)
tree549f994205cb5ced4662bad16e7c47d29ae39c4a /bb.h
parent2ab58f3d8c3172a1d045efb76010b88f3537af08 (diff)
Cleaned up column rendering logic, including adding a 'stretchy' option
for columns to fill available space. Also fixed some coloring issues.
Diffstat (limited to 'bb.h')
-rw-r--r--bb.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/bb.h b/bb.h
index d85e793..068122c 100644
--- a/bb.h
+++ b/bb.h
@@ -32,7 +32,7 @@
#define PATH_MAX 4096
#endif
-#define BB_TIME_FMT " %I:%M%p %D "
+#define BB_TIME_FMT " %T %D "
#define MAX_COLS 12
#define MAX_SORT (2*MAX_COLS)
#define HASH_SIZE 1024
@@ -183,6 +183,7 @@ void bb_browse(bb_t *bb, const char *initial_path);
static void check_cmdfile(bb_t *bb);
static void cleanup(void);
static void cleanup_and_raise(int sig);
+static const char* color_of(mode_t mode);
#ifdef __APPLE__
static int compare_files(void *v, const void *v1, const void *v2);
#else