summary refs log tree commit diff
path: root/bin/hilex/hilex.c
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2020-12-29 17:44:48 -0500
committerJune McEnroe <june@causal.agency>2020-12-29 17:44:48 -0500
commit9e72c0acce13944e568b1a164058b779a4d537f6 (patch)
tree23f67535c762b45709d61d122bcd6eef03a4335a /bin/hilex/hilex.c
parentMatch lex/yacc %% %{ %} lines as Macro (diff)
downloadsrc-9e72c0acce13944e568b1a164058b779a4d537f6.tar.gz
src-9e72c0acce13944e568b1a164058b779a4d537f6.zip
Clean up hilex code somewhat
Diffstat (limited to 'bin/hilex/hilex.c')
-rw-r--r--bin/hilex/hilex.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/bin/hilex/hilex.c b/bin/hilex/hilex.c
index d99b14bb..b2bebd5f 100644
--- a/bin/hilex/hilex.c
+++ b/bin/hilex/hilex.c
@@ -82,9 +82,13 @@ static const char *ClassName[] = {
 
 static void
 debugFormat(const char *opts[], enum Class class, const char *text) {
-	printf("%s(\33[3m", ClassName[class]);
-	FormatANSI.format(opts, class, text);
-	printf("\33[m)");
+	if (class != Normal) {
+		printf("%s(", ClassName[class]);
+		FormatANSI.format(opts, class, text);
+		printf(")");
+	} else {
+		printf("%s", text);
+	}
 }
 
 const struct Formatter FormatDebug = { .format = debugFormat };
12 02:23:15 -0500'>2020-02-12Move catgirl up the pageJune McEnroe 2020-02-12Update catgirl pty grabJune McEnroe 2020-02-12Link to cgit /about pages where appropriateJune McEnroe 2020-02-11Separate LINKS from BINS for html to workJune McEnroe 2020-02-11Add margin to Bl-bullet itemsJune McEnroe 2020-02-10Match URLs inside parens or with paired parens insideJune McEnroe 2020-02-10Duplicate effective URL before passing it back to curlJune McEnroe 2020-02-09Add To Be Taught, If FortunateJune McEnroe 2020-02-04Add The Future of Another TimelineJune McEnroe 2020-01-31Reorganize the Makefile for the umpteenth timeJune McEnroe 2020-01-28Change scout sensitivity to 1.4June McEnroe 2020-01-28Import shows.txtJune McEnroe