From 5e4ca1d4704590efd74e0a3e82a454d334016b48 Mon Sep 17 00:00:00 2001 From: "Kartik K. Agaram" Date: Fri, 4 Feb 2022 23:55:28 -0800 Subject: don't perturb cursor when drawing menu --- src/teliva.c | 3 +++ 1 file changed, 3 insertions(+) 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 */ -- cgit 1.4.1-2-gfad0