mirror of
https://github.com/alex8088/electron-vite.git
synced 2026-06-10 08:18:11 +08:00
Merge 1cdbbf1957a62fce58b4ca4c5ac10d3603d26902 into 91368b665518b9ceecf7240ed93c1078bfa54447
This commit is contained in:
commit
2973f82d76
@ -170,6 +170,7 @@ function transformReporterPlugin(
|
||||
}
|
||||
|
||||
function writeLine(output: string): void {
|
||||
if (!process.stdout.isTTY) return
|
||||
clearLine()
|
||||
if (output.length < process.stdout.columns) {
|
||||
process.stdout.write(output)
|
||||
@ -179,6 +180,7 @@ function writeLine(output: string): void {
|
||||
}
|
||||
|
||||
function clearLine(move: number = 0): void {
|
||||
if (!process.stdout.isTTY) return
|
||||
if (move < 0) {
|
||||
process.stdout.moveCursor(0, move)
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user