From bba67091ac18bfcf886dc1221dea218aa119618e Mon Sep 17 00:00:00 2001 From: Cameron Katri Date: Sun, 30 May 2021 15:59:03 -0400 Subject: Revamp to improve everything, and support D30547 https://reviews.freebsd.org/D30547 --- common.h | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) (limited to 'common.h') 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 -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 -- cgit v1.2.3-56-ge451