diff --git a/toolchainlib/src/init.luau b/toolchainlib/src/init.luau index cdf1173..d5adf88 100644 --- a/toolchainlib/src/init.luau +++ b/toolchainlib/src/init.luau @@ -281,7 +281,7 @@ function installTool(tool: ToolId, installPath: pathfs.Path): number if matchingAsset == nil then if _G.interactive then -- Clear the current progress bar line - stdio.write("\x1b[2K\x1b[0G") + stdio.ewrite("\x1b[2K\x1b[0G") end -- Output warnings diff --git a/toolchainlib/src/utils/progress.luau b/toolchainlib/src/utils/progress.luau index 25743c9..cf0679c 100644 --- a/toolchainlib/src/utils/progress.luau +++ b/toolchainlib/src/utils/progress.luau @@ -56,7 +56,7 @@ function ProgressBar.start(self: ProgressBarImpl): () while not self.finished do for _, spinner in SPINNERS do local stage = self.stages[self.currentStageIndex] - stdio.write( + stdio.ewrite( `\x1b[2K\x1b[0G{stdio.color("cyan")}{spinner} {stage.message}{stdio.color("reset")}{string.rep( " ", MAX_MESSAGE_LENGTH - #stage.message