aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2024-05-12 14:58:10 -0400
committerBruce Hill <bruce@bruce-hill.com>2024-05-12 14:58:10 -0400
commit8ada56c4248e9e09b8f151e9d516739dd86ad520 (patch)
tree5de5bc043667b10f328495a58b391a1a4fcf7118
parentd143c72b2267883c229a09cc27bbeafcf2c3fd70 (diff)
Tweak interface color formatting
-rw-r--r--interfaces.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/interfaces.c b/interfaces.c
index e74f85c8..a1f1e73f 100644
--- a/interfaces.c
+++ b/interfaces.c
@@ -21,7 +21,7 @@ static CORD compile_str_method(env_t *env, ast_t *ast)
if (dollar) name = dollar + 1;
CORD str_func = CORD_asprintf("static CORD %r$as_text(%r_t *interface, bool use_color) {\n"
"\tif (!interface) return \"%s\";\n", full_name, full_name, name);
- return CORD_all(str_func, "\treturn CORD_asprintf(use_color ? \"\\x1b[0;1m", name, "\\x1b[m<%p>\" : \"", name, "<%p>\", interface->$obj);\n}");
+ return CORD_all(str_func, "\treturn CORD_asprintf(use_color ? \"\\x1b[0;1m", name, "\\x1b[m<\\x1b[36m%p\\x1b[m>\" : \"", name, "<%p>\", interface->$obj);\n}");
}
static CORD compile_compare_method(env_t *env, ast_t *ast)