Skip to content

Commit 83c18de

Browse files
committed
fix(#103): restore raw mode on unblock
1 parent f44c104 commit 83c18de

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

packages/core/src/utils.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ export function block({
4040
return () => {
4141
input.off('keypress', clear);
4242
if (hideCursor) process.stdout.write(cursor.show);
43+
if (input.isTTY) input.setRawMode(false);
4344

4445
// @ts-expect-error fix for https://github.com/nodejs/node/issues/31762#issuecomment-1441223907
4546
rl.terminal = false;

0 commit comments

Comments
 (0)