diff --git a/.changeset/wet-oranges-march.md b/.changeset/wet-oranges-march.md new file mode 100644 index 00000000..da69e499 --- /dev/null +++ b/.changeset/wet-oranges-march.md @@ -0,0 +1,5 @@ +--- +"@clack/core": patch +--- + +fix cursor missing after submit diff --git a/packages/core/src/prompts/prompt.ts b/packages/core/src/prompts/prompt.ts index 6d343b77..c87d6eaf 100644 --- a/packages/core/src/prompts/prompt.ts +++ b/packages/core/src/prompts/prompt.ts @@ -96,6 +96,7 @@ export default class Prompt { return new Promise((resolve, reject) => { this.once('submit', () => { + this.output.write(cursor.show); resolve(this.value); }) this.once('cancel', () => {