From 86f0a63517bcc0d9c013eb93bf31805353607bc4 Mon Sep 17 00:00:00 2001 From: Ayoub Chaaoui Date: Fri, 22 Nov 2024 10:31:35 +0100 Subject: [PATCH 1/2] bug(cli/kit): show cursor after the loader finishes --- packages/cli-kit/lib/internal/node/ui.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/cli-kit/lib/internal/node/ui.ts b/packages/cli-kit/lib/internal/node/ui.ts index f106907..640ceec 100644 --- a/packages/cli-kit/lib/internal/node/ui.ts +++ b/packages/cli-kit/lib/internal/node/ui.ts @@ -31,6 +31,7 @@ export class Loader { process.stdout.write('\r'); process.stdout.write(kleur.green(`✔ ${this.message}\n`)); + process.stdout.write('\x1B[?25h'); return this; } From 6f82d28f9649b9ccac8ca8a7950bb1de288f59ff Mon Sep 17 00:00:00 2001 From: Ayoub Chaaoui Date: Fri, 22 Nov 2024 10:55:29 +0100 Subject: [PATCH 2/2] mod --- packages/cli-kit/lib/internal/node/ui.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/cli-kit/lib/internal/node/ui.ts b/packages/cli-kit/lib/internal/node/ui.ts index 640ceec..d7fa306 100644 --- a/packages/cli-kit/lib/internal/node/ui.ts +++ b/packages/cli-kit/lib/internal/node/ui.ts @@ -20,6 +20,7 @@ export class Loader { } private flush() { + process.stdout.write('\x1B[?25h'); if (this.timer) { clearInterval(this.timer); this.timer = null; @@ -31,7 +32,6 @@ export class Loader { process.stdout.write('\r'); process.stdout.write(kleur.green(`✔ ${this.message}\n`)); - process.stdout.write('\x1B[?25h'); return this; }