From 754fd98b7f7da3bc1ad6a54a0330f750215b90e8 Mon Sep 17 00:00:00 2001 From: Philip Monk Date: Fri, 23 Aug 2019 19:16:09 -0700 Subject: [PATCH] pier.c: add colors for priority printfs --- pkg/urbit/vere/pier.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/pkg/urbit/vere/pier.c b/pkg/urbit/vere/pier.c index f1bde7178..cac6f4b44 100644 --- a/pkg/urbit/vere/pier.c +++ b/pkg/urbit/vere/pier.c @@ -1997,9 +1997,9 @@ u3_pier_tank(c3_l tab_l, c3_w pri_w, u3_noun tac) } switch ( pri_w ) { - case 3: fprintf(fil_u, ">>> "); break; - case 2: fprintf(fil_u, ">> "); break; - case 1: fprintf(fil_u, "> "); break; + case 3: fprintf(fil_u, "\033[31m>>> "); break; + case 2: fprintf(fil_u, "\033[33m>> "); break; + case 1: fprintf(fil_u, "\033[32m> "); break; } // if we have no arvo kernel and can't evaluate nock @@ -2020,6 +2020,7 @@ u3_pier_tank(c3_l tab_l, c3_w pri_w, u3_noun tac) _pier_wall(fil_u, wol); } + fprintf(fil_u, "\033[0m"); u3_term_io_loja(0); u3z(blu); u3z(tac);