@oxecli/oxe 1.0.10 → 1.0.11
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.
- package/dist/cli.js +4 -0
- package/dist/config.js +1 -0
- package/dist/ui.js +2 -0
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -317,6 +317,7 @@ export async function main() {
|
|
|
317
317
|
// leaves that row as a blank, giving exactly one blank under the prompt,
|
|
318
318
|
// and the trailing newline gives one blank under the goodbye message.
|
|
319
319
|
process.stdout.write("\nClosing terminal session. Goodbye!\n");
|
|
320
|
+
process.exit(0);
|
|
320
321
|
return;
|
|
321
322
|
}
|
|
322
323
|
throw err;
|
|
@@ -332,4 +333,7 @@ export async function main() {
|
|
|
332
333
|
if (typeof client?.close === "function")
|
|
333
334
|
await client.close();
|
|
334
335
|
}
|
|
336
|
+
// The prompt's readline keypress listener is never removed and stdin remains
|
|
337
|
+
// resumed, so Node won't exit on its own after the loop ends. Exit explicitly.
|
|
338
|
+
process.exit(0);
|
|
335
339
|
}
|
package/dist/config.js
CHANGED
package/dist/ui.js
CHANGED
|
@@ -611,6 +611,8 @@ export function askBottomPrompt(label = "You", prefix = "❯", history = []) {
|
|
|
611
611
|
process.stdin.setRawMode(false);
|
|
612
612
|
showCursor();
|
|
613
613
|
clearBox();
|
|
614
|
+
process.stdin.removeListener("keypress", onKeypress);
|
|
615
|
+
process.stdin.pause();
|
|
614
616
|
if (isErr)
|
|
615
617
|
reject(value);
|
|
616
618
|
else
|