aboutsummaryrefslogtreecommitdiffstats
path: root/common.h
diff options
context:
space:
mode:
authorCameron Katri <me@cameronkatri.com>2021-05-30 15:59:03 -0400
committerCameron Katri <me@cameronkatri.com>2021-05-30 15:59:03 -0400
commitbba67091ac18bfcf886dc1221dea218aa119618e (patch)
treeb70347dc27e0afa933f184425d04b681ed9155b3 /common.h
parentc94bbb169889ec8827c373ebd6cfadf9f330218e (diff)
downloadopendircolors-bba67091ac18bfcf886dc1221dea218aa119618e.tar.gz
opendircolors-bba67091ac18bfcf886dc1221dea218aa119618e.tar.zst
opendircolors-bba67091ac18bfcf886dc1221dea218aa119618e.zip
Revamp to improve everything, and support D30547
https://reviews.freebsd.org/D30547
Diffstat (limited to 'common.h')
-rw-r--r--common.h13
1 files changed, 8 insertions, 5 deletions
diff --git a/common.h b/common.h
index b82776b..fa181d8 100644
--- a/common.h
+++ b/common.h
@@ -30,10 +30,13 @@
#define COMMON_H
#include <stdbool.h>
-static const char *types[11] = { "di", "ln", "so", "pi", "ex", "bd", "cd", "su",
- "sg", "tw", "ow" };
-static const char col[8] = "abcdefgh";
-char *tolscolors(char *);
-char numtocol(char, bool);
+#define MAXKEYLEN 21
+
+struct color {
+ char fg;
+ char bg;
+};
+
+struct color *parseansi(char *, struct color*);
#endif