diff options
author | Cameron Katri <me@cameronkatri.com> | 2021-05-30 15:59:03 -0400 |
---|---|---|
committer | Cameron Katri <me@cameronkatri.com> | 2021-05-30 15:59:03 -0400 |
commit | bba67091ac18bfcf886dc1221dea218aa119618e (patch) | |
tree | b70347dc27e0afa933f184425d04b681ed9155b3 /common.h | |
parent | c94bbb169889ec8827c373ebd6cfadf9f330218e (diff) | |
download | opendircolors-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.h | 13 |
1 files changed, 8 insertions, 5 deletions
@@ -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 |