mirror of
https://github.com/heygen-com/hyperframes.git
synced 2026-09-08 19:06:04 +00:00
fix(cli): stream non-TTY render progress (#2458)
This commit is contained in:
@@ -12,6 +12,8 @@ export function renderProgress(percent: number, stage: string, row?: number): vo
|
||||
|
||||
if (row !== undefined && stdout.isTTY) {
|
||||
stdout.write(`\x1b[${row};1H\x1b[2K${line}`);
|
||||
} else if (!stdout.isTTY) {
|
||||
stdout.write(`${line}\n`);
|
||||
} else {
|
||||
stdout.write(`\r\x1b[2K${line}`);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user