We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents d41fae5 + d8812a1 commit 88ead6fCopy full SHA for 88ead6f
2 files changed
packages/inquirerer/src/keypress.ts
@@ -150,6 +150,9 @@ export class TerminalKeypress {
150
pause(): void {
151
this.active = false;
152
this.clearHandlers();
153
+ if (typeof (this.input as any).setRawMode === 'function') {
154
+ (this.input as any).setRawMode(false);
155
+ }
156
}
157
158
resume(): void {
packages/inquirerer/src/prompt.ts
@@ -1329,7 +1329,11 @@ export class Inquirerer {
1329
public close() {
1330
if (this.rl) {
1331
this.rl.close();
1332
+ this.rl = null;
1333
1334
+ if (this.keypress) {
1335
this.keypress.destroy();
1336
+ this.keypress = null;
1337
1338
1339
0 commit comments