about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2022-02-04 23:55:28 -0800
committerKartik K. Agaram <vc@akkartik.com>2022-02-04 23:55:28 -0800
commit5e4ca1d4704590efd74e0a3e82a454d334016b48 (patch)
treee07819af73e13fa57b8e4c5190ae435624c0a03d
parent5c1a7b6b12dc850145938e5b656778fc741a968a (diff)
downloadteliva-5e4ca1d4704590efd74e0a3e82a454d334016b48.tar.gz
don't perturb cursor when drawing menu
-rw-r--r--src/teliva.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/teliva.c b/src/teliva.c
index 9bd2f67..c21e4af 100644
--- a/src/teliva.c
+++ b/src/teliva.c
@@ -139,7 +139,10 @@ void render_trusted_teliva_data(lua_State* L) {
   init_pair(COLOR_PAIR_SAFE, COLOR_SAFE_REVERSE, COLOR_FOREGROUND);
   init_pair(COLOR_PAIR_WARN, COLOR_WARN_REVERSE, COLOR_FOREGROUND);
   init_pair(COLOR_PAIR_RISK, COLOR_RISK_REVERSE, COLOR_FOREGROUND);
+  int y, x;
+  getyx(stdscr, y, x);
   draw_menu(L);
+  mvaddstr(y, x, "");
 }
 
 /*** Error reporting */