@inquirer/core 11.1.8 → 11.1.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -40,16 +40,17 @@ export function createPrompt(view) {
40
40
  // Add mute capabilities to the output
41
41
  const output = new MuteStream();
42
42
  output.pipe(context.output ?? process.stdout);
43
- // Pre-mute the output so that readline doesn't echo stale keystrokes
44
- // to the terminal before the first render. ScreenManager will unmute/mute
45
- // the output around each render call as needed.
46
- output.mute();
47
43
  // oxlint-disable-next-line typescript/no-unsafe-type-assertion
48
44
  const rl = readline.createInterface({
49
45
  terminal: true,
50
46
  input,
51
47
  output,
52
48
  });
49
+ // Mute the output after readline has initialized so readline can perform
50
+ // any terminal setup writes (e.g. Windows Console API initialization)
51
+ // before suppressing output. ScreenManager will unmute/mute around each
52
+ // render call as needed.
53
+ output.mute();
53
54
  const screen = new ScreenManager(rl);
54
55
  const { promise, resolve, reject } = PromisePolyfill.withResolver();
55
56
  const cancel = () => reject(new CancelPromptError());
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@inquirer/core",
3
- "version": "11.1.8",
3
+ "version": "11.1.9",
4
4
  "description": "Core Inquirer prompt API",
5
5
  "keywords": [
6
6
  "answer",
@@ -93,5 +93,5 @@
93
93
  },
94
94
  "main": "./dist/index.js",
95
95
  "types": "./dist/index.d.ts",
96
- "gitHead": "e68fe01d65359e083581c48c4a18cd8f97d88842"
96
+ "gitHead": "35bda2afd31b4acca8f800259b9f7ca4e95a1d9d"
97
97
  }