]> git.tdb.fi Git - builder.git/commitdiff
Clear the line before printing task info if progress is enabled
authorMikko Rasa <tdb@tdb.fi>
Thu, 22 Dec 2022 14:22:46 +0000 (16:22 +0200)
committerMikko Rasa <tdb@tdb.fi>
Thu, 22 Dec 2022 14:41:48 +0000 (16:41 +0200)
source/builder.cpp

index 9968792ac69279dab08731d960912391f77798a0..032bb87001d17cc9dff7e0c8d33b03eeb96f39cd 100644 (file)
@@ -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)
                                {