From 2a23a19ff6717b32ddc45f84681c5c969c967e45 Mon Sep 17 00:00:00 2001 From: Mikko Rasa Date: Thu, 22 Dec 2022 16:22:46 +0200 Subject: [PATCH] Clear the line before printing task info if progress is enabled --- source/builder.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/source/builder.cpp b/source/builder.cpp index 9968792..032bb87 100644 --- a/source/builder.cpp +++ b/source/builder.cpp @@ -196,7 +196,11 @@ int Builder::build(unsigned jobs, bool dry_run, bool show_progress) if(tgt) { if(tgt->get_tool()) + { + if(show_progress) + IO::print("\033[K"); get_logger().log("tasks", "%-4s %s", tgt->get_tool()->get_tag(), tgt->get_name()); + } Task *task = tgt->build(); if(task) { -- 2.45.2