Skip to content

Commit f8a5a71

Browse files
authored
fix: restore stdin raw mode to off after ctrl-c quit (#3395)
1 parent c32af2c commit f8a5a71

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/extension-runners/index.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -255,6 +255,9 @@ export function defaultReloadStrategy(
255255
extensionRunner.registerCleanup(() => {
256256
watcher.close();
257257
if (allowInput) {
258+
if (isTTY(stdin)) {
259+
setRawMode(stdin, false);
260+
}
258261
stdin.pause();
259262
}
260263
});

0 commit comments

Comments
 (0)