From: Michael Tremer Date: Thu, 19 Sep 2024 14:59:57 +0000 (+0000) Subject: tui: Erase the graph instead of clear to avoid window flashing X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=e11faba45014d04be0625413ab7248439cc222c9;p=fireperf.git tui: Erase the graph instead of clear to avoid window flashing Signed-off-by: Michael Tremer --- 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);