From 6b9f5946207fc821548f0029b915f85d90bab3d3 Mon Sep 17 00:00:00 2001 From: Carter Li Date: Fri, 5 Jun 2026 14:46:27 +0800 Subject: [PATCH] Global: prevents ascii logo from being overwritten in `--dynamic-interval` mode --- src/fastfetch.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/fastfetch.c b/src/fastfetch.c index a82d853eb..dcd62db6a 100644 --- a/src/fastfetch.c +++ b/src/fastfetch.c @@ -765,9 +765,11 @@ static void run(FFdata* data) { } if (instance.state.dynamicInterval > 0) { + ffLogoPrintRemaining(); // `logoLineCacheClear` inside so that ffLogoPrintLine will use `\e[nC` to move the cursor to the right position instead of reprinting the logo + fputs("\e[J", stdout); // Clear from cursor to the end of the screen to prevent artifacts when the new output is shorter than the previous one fflush(stdout); ffTimeSleep(instance.state.dynamicInterval); - fputs("\e[H", stdout); + fputs("\e[H", stdout); // Move cursor to the top left corner to overwrite the previous output } else { break; }