summaryrefslogtreecommitdiff
path: root/xmake/modules/utils/progress.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2025-11-20 00:47:39 +0800
committerruki <[email protected]>2025-11-20 00:47:39 +0800
commit7aae7b19dc081cdc1e630406788425eb74bd9d4b (patch)
tree55e655e107542d7311c7212d4b4ec57373e2368f /xmake/modules/utils/progress.lua
parentbb23918bcc9423cecc98275759d529adf41f4ca5 (diff)
add timer to progress when building
Diffstat (limited to 'xmake/modules/utils/progress.lua')
-rw-r--r--xmake/modules/utils/progress.lua10
1 files changed, 5 insertions, 5 deletions
diff --git a/xmake/modules/utils/progress.lua b/xmake/modules/utils/progress.lua
index c8846e033..ff97a6d6c 100644
--- a/xmake/modules/utils/progress.lua
+++ b/xmake/modules/utils/progress.lua
@@ -388,6 +388,11 @@ function show_output(format, ...)
end
end
+-- check if multirow refresh mode is enabled
+function is_multirow()
+ return _is_multirow_refresh()
+end
+
-- refresh the multirow progress display to update elapsed time
-- this is useful for long-running tasks to keep the elapsed time updated
function refresh()
@@ -398,11 +403,6 @@ function refresh()
end
end
--- check if multirow refresh mode is enabled
-function is_multirow()
- return _is_multirow_refresh()
-end
-
-- abort the progress display mode, used for error exit or early termination
-- this function cleans up the progress display area and restores the terminal state
function show_abort()