config.def.h (1302B)
1 /* escape codes: colors, reset */ 2 #define COLOR_GREEN "\x1b[1;32m" 3 #define COLOR_YELLOW "\x1b[1;33m" 4 #define COLOR_BLUE "\x1b[1;34m" 5 #define COLOR_WHITE "\x1b[1;37m" 6 7 static const char *reset = "\x1b[1;0m"; 8 9 /* colors */ 10 static const char *nickcolor = COLOR_WHITE; 11 static const char *servercolor = COLOR_GREEN; 12 static const char *urlcolor = COLOR_BLUE; 13 static const char *wordcolor = COLOR_YELLOW; 14 15 /* ignore message on match */ 16 static char *regexignore = "^$"; 17 /* match nickname */ 18 static char *regexnick = "\\b(me|myself|irene)\\b"; 19 /* highlight / color words */ 20 static char *regexword = "\\b(me|myself|irene)\\b"; 21 22 /* nickname to match and align */ 23 static const char *regexnickalign = "^[0-9]{2}:[0-9]{2} <([^>]+)>"; 24 /* match server messages */ 25 static const char *regexserver = "^([0-9]{2}:[0-9]{2} -!- .*)$"; 26 /* skip this prefix for each line (date part) */ 27 static const char *regextimestamp = "^[0-9]{4}-[0-9]{2}-[0-9]{2} "; 28 /* convert unix timestamp prefix */ 29 static const char *regexunixtimestamp = "^[0-9]{10} "; 30 /* buffer size to store formatted time string */ 31 #define TIMEFORMAT_BUFSIZ 18 32 static const char *timeformat = "%Y-%m-%d %H:%M "; 33 /* highlight / color urls */ 34 static const char *regexurl = 35 "(((https?|ftp)|mailto):(//)?[^ <>\"[:blank:]]*|(www|ftp)[0-9]?\\.[-a-z0-9.]+)";