Skip to content

Commit 77df551

Browse files
committed
fix: apply cursor position at 0:0
1 parent 28421d4 commit 77df551

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

lib/src/application/components/screen.dart

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,12 @@ final class ScreenManager {
2626
}
2727

2828
void enter() {
29-
stdout.writeAnsi(AlternateScreen.enter);
29+
stdout.writeAnsiAll([
30+
AlternateScreen.enter,
31+
CursorPosition.reset,
32+
Clear.afterCursor,
33+
]);
34+
3035
if (_screen._title case String title) {
3136
stdout.writeAnsi(SetTitle(title));
3237
}

0 commit comments

Comments
 (0)