From 569532f7e4c5b523af4377d078a09e8c723da71a Mon Sep 17 00:00:00 2001 From: Concedo <39025047+LostRuins@users.noreply.github.com> Date: Fri, 7 Aug 2026 15:21:42 +0800 Subject: [PATCH] improve image gen display --- otherarch/sdcpp/sdtype_adapter.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/otherarch/sdcpp/sdtype_adapter.cpp b/otherarch/sdcpp/sdtype_adapter.cpp index 35aa8a485..d14de6c78 100644 --- a/otherarch/sdcpp/sdtype_adapter.cpp +++ b/otherarch/sdcpp/sdtype_adapter.cpp @@ -315,7 +315,11 @@ static void progress_callback(int step, int steps, float time, void* data) speed = 1.0f / speed; unit = "it/s"; } - printf("\rGenerating image: %d/%d steps, %.2f%s%s", step, steps, speed, unit, step == steps ? "\n" : ""); + if(step==1) + { + printf("\n"); + } + printf("\rGenerating image: %d/%d steps, %.2f %s\033[K%s", step, steps, speed, unit, step == steps ? "\n" : ""); fflush(stdout); }