Skip to content

Commit f99ac65

Browse files
committed
feat: restore cursor after submit
1 parent f1a54b9 commit f99ac65

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

lib/src/components/input.dart

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ class Input with Tools implements Component<Result<String>> {
6060
clearFromCursorToEnd();
6161
restoreCursorPosition();
6262
showInput();
63+
showCursor();
6364

6465
dispose();
6566

lib/src/components/select.dart

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,7 @@ final class Select<T, R extends dynamic> with Tools implements Component<Result<
9999

100100
stdout.writeln('${AsciiColors.green('✔')} $answer · ${AsciiColors.lightGreen(value)}');
101101
saveCursorPosition();
102+
showCursor();
102103
_completer.complete(Ok(options[currentIndex]));
103104
}
104105

0 commit comments

Comments
 (0)