Skip to content

Commit 2f3374b

Browse files
author
Gaurav
committed
fix(cli): preserve terminal scrollback buffer during run command
1 parent 060680c commit 2f3374b

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
@@ -5,7 +5,7 @@ import readline from "readline";
55
import { colors } from "../constants";
66

77
export async function renderClear() {
8-
console.log("\x1Bc");
8+
process.stdout.write("\x1b[2J\x1b[H");
99
}
1010

1111
export async function renderSpacer() {

0 commit comments

Comments
 (0)