about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2021-12-06 22:10:10 -0800
committerKartik K. Agaram <vc@akkartik.com>2021-12-06 22:10:10 -0800
commit978f698bfd16fad492fc927d9faa9e84c63be7ae (patch)
tree80c1e2507a27f24e1588d9eb0778bfc3a6cb9659
parentbba3559b06ba472f24bd1836e0feb216bb00900a (diff)
downloadteliva-978f698bfd16fad492fc927d9faa9e84c63be7ae.tar.gz
fix colors in startup errors
-rw-r--r--src/lua.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/lua.c b/src/lua.c
index 9f99b1f..5874502 100644
--- a/src/lua.c
+++ b/src/lua.c
@@ -106,6 +106,7 @@ static int render_wrapped_text (int y, int xmin, int xmax, const char *text) {
 const char *Previous_error = NULL;
 void render_previous_error (void) {
   if (!Previous_error) return;
+  init_pair(COLOR_PAIR_ERROR, COLOR_ERROR_FOREGROUND, COLOR_ERROR_BACKGROUND);
   attrset(COLOR_PAIR(255));
   render_wrapped_text(LINES-10, COLS/2, COLS, Previous_error);
   attrset(A_NORMAL);