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.
1 parent 969f538 commit f1d3982Copy full SHA for f1d3982
src/index.js
@@ -32,6 +32,7 @@ module.exports = {
32
events.cancel = ''
33
34
process.stdin.on('data', async function eventInvokeListener (input) {
35
+ start()
36
input = String(input)
37
// Reset Enquirer's styles
38
let options = {
@@ -111,10 +112,15 @@ module.exports = {
111
112
}
113
114
// Necessary per Enquirer #326
-function end () {
115
+function start () {
116
if (process.stdin.isTTY) {
117
process.stdin.setRawMode(true)
118
process.stdin.setEncoding('utf8')
119
process.stdin.resume()
120
121
122
+function end () {
123
+ if (process.stdin.isTTY) {
124
+ process.stdin.pause()
125
+ }
126
+}
0 commit comments