summary refs log tree commit diff
path: root/bin/hilex/ansi.c
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2020-12-28 23:48:24 -0500
committerJune McEnroe <june@causal.agency>2020-12-28 23:48:24 -0500
commitc382aaa0828072d208e8bb768c58ae5d0b9eb310 (patch)
treeb35dfc3ab07665bba9ae19819cc69a85cfc6719c /bin/hilex/ansi.c
parentGenerate Tag tokens for mdoc headings (diff)
downloadsrc-c382aaa0828072d208e8bb768c58ae5d0b9eb310.tar.gz
src-c382aaa0828072d208e8bb768c58ae5d0b9eb310.zip
Add hilex IRC formatter
Diffstat (limited to 'bin/hilex/ansi.c')
-rw-r--r--bin/hilex/ansi.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/hilex/ansi.c b/bin/hilex/ansi.c
index 4b8e1b69..fa88fd37 100644
--- a/bin/hilex/ansi.c
+++ b/bin/hilex/ansi.c
@@ -29,7 +29,7 @@ static const char *SGR[ClassCap] = {
 	[StringFormat] = "36;1;96",
 };
 
-static void format(const char *opts[], enum Class class, const char *text) {
+static void ansiFormat(const char *opts[], enum Class class, const char *text) {
 	(void)opts;
 	if (!SGR[class]) {
 		printf("%s", text);
@@ -42,4 +42,4 @@ static void format(const char *opts[], enum Class class, const char *text) {
 	if (*text) printf("\33[%sm%s\33[m", SGR[class], text);
 }
 
-const struct Formatter FormatANSI = { .format = format };
+const struct Formatter FormatANSI = { .format = ansiFormat };