From e11faba45014d04be0625413ab7248439cc222c9 Mon Sep 17 00:00:00 2001 From: Michael Tremer Date: Thu, 19 Sep 2024 14:59:57 +0000 Subject: [PATCH] tui: Erase the graph instead of clear to avoid window flashing Signed-off-by: Michael Tremer --- src/tui.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/tui.c b/src/tui.c index 956de21..6d8e952 100644 --- a/src/tui.c +++ b/src/tui.c @@ -284,8 +284,8 @@ static int fireperf_tui_draw_graph(struct fireperf_tui* tui) { int max_x = 0; int max_y = 0; - // Clear any previous content - wclear(tui->graph); + // Erase any previous content + werase(tui->graph); // Fetch the dimensions of the frame getmaxyx(tui->graph, max_y, max_x); -- 2.47.3