Skip to content

Commit a759e16

Browse files
Gaurav Paliwalmaxprilutskiy
andauthored
fix(cli): preserve terminal scrollback buffer during run command (#2042)
Co-authored-by: Max Prilutskiy <5614659+maxprilutskiy@users.noreply.github.com>
1 parent 374e5dd commit a759e16

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

.changeset/bright-lions-suffer.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"lingo.dev": patch
3+
---
4+
5+
fix(cli): preserve terminal scrollback buffer during run command

packages/cli/src/cli/utils/ui.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ function isCI(): boolean {
1010
}
1111

1212
export async function renderClear() {
13-
console.log("\x1Bc");
13+
process.stdout.write("\x1b[2J\x1b[H");
1414
}
1515

1616
export async function renderSpacer() {

0 commit comments

Comments
 (0)