diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2024-03-30 12:17:39 -0400 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2024-03-30 12:17:39 -0400 |
| commit | 4192e123e6e09aa55878b4a000288ab6808be802 (patch) | |
| tree | 5ef4f6973462e949be53bcc686ba6f2f1c14ebdb | |
| parent | 838c9963fc2216e827ceed80fc352d1d16ea30f9 (diff) | |
Bugfix for color
| -rw-r--r-- | repl.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -148,7 +148,7 @@ static double ast_to_num(env_t *env, ast_t *ast) static CORD obj_to_text(type_t *t, const void *obj, bool use_color) { -#define C(code, fmt) (use_color ? "\x1b[" code fmt "\x1b[m" : fmt) +#define C(code, fmt) (use_color ? "\x1b[" code "m" fmt "\x1b[m" : fmt) switch (t->tag) { case MemoryType: return "<Memory>"; case BoolType: return *(bool*)obj ? C("35", "yes") : C("35", "no"); |
