We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 956825c + cd79076 commit 8eff6ceCopy full SHA for 8eff6ce
.changeset/twelve-shrimps-report.md
@@ -0,0 +1,5 @@
1
+---
2
+'@clack/core': patch
3
4
+
5
+fix: restore raw mode on unblock
packages/core/src/utils.ts
@@ -40,6 +40,7 @@ export function block({
40
return () => {
41
input.off('keypress', clear);
42
if (hideCursor) process.stdout.write(cursor.show);
43
+ if (input.isTTY) input.setRawMode(false);
44
45
// @ts-expect-error fix for https://github.com/nodejs/node/issues/31762#issuecomment-1441223907
46
rl.terminal = false;
0 commit comments