From 95cb9ca1d4bcf164b3d85e25c64a33ba3a74be7e Mon Sep 17 00:00:00 2001 From: ruki Date: Thu, 20 Nov 2025 00:53:31 +0800 Subject: improve progress --- xmake/modules/utils/progress.lua | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'xmake/modules/utils/progress.lua') diff --git a/xmake/modules/utils/progress.lua b/xmake/modules/utils/progress.lua index ff97a6d6c..d531bee90 100644 --- a/xmake/modules/utils/progress.lua +++ b/xmake/modules/utils/progress.lua @@ -202,6 +202,15 @@ function _display_subprocess_lines(order_lineinfos) linecount = linecount + 1 end end + -- clear the left lines + local left_linecount = #order_lineinfos - linecount + if left_linecount > 0 then + for i = 1, left_linecount do + tty.erase_line().cr() + print("") + end + tty.cursor_move_up(left_linecount) + end _g.linecount = linecount end -- cgit v1.3.1