From: Mikko Rasa Date: Thu, 22 Dec 2022 14:22:46 +0000 (+0200) Subject: Clear the line before printing task info if progress is enabled X-Git-Url: http://git.tdb.fi/?p=builder.git;a=commitdiff_plain;h=2a23a19ff6717b32ddc45f84681c5c969c967e45 Clear the line before printing task info if progress is enabled --- 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) {