]> git.ipfire.org Git - fireperf.git/commitdiff
tui: Erase the graph instead of clear to avoid window flashing
authorMichael Tremer <michael.tremer@ipfire.org>
Thu, 19 Sep 2024 14:59:57 +0000 (14:59 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Thu, 19 Sep 2024 14:59:57 +0000 (14:59 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/tui.c

index 956de21701a6746217f50893b75c63b5dc98aa4c..6d8e952bf0ed7be6f99b5271473230d2488150a4 100644 (file)
--- 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);