Skip to content

Commit 28421d4

Browse files
committed
fix: restore cursor at the end of message component
1 parent f2cac3d commit 28421d4

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/src/application/components/ask.dart

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,8 @@ final class Ask<T> with TerminalTools implements Component<Future<T>> {
118118

119119
stdout.writeAnsiAll([
120120
const CursorPosition.moveUp(1),
121+
CursorPosition.moveToColumn(_message.length + 2),
122+
const CursorPosition.moveRight(2),
121123
SetStyles(Style.foreground(Color.brightBlack)),
122124
]);
123125

0 commit comments

Comments
 (0)