From de25f5a4a86a75487e80b83af8c3807509e3cec2 Mon Sep 17 00:00:00 2001 From: David First Date: Mon, 8 Feb 2021 16:51:38 -0500 Subject: [PATCH] configure Ora to avoid messing with Ctrl+C (#3760) Currently, it's mostly noticeable during bit build command at the typescript compilation step. It seems to be a bug in Ora package, see here for more info: sindresorhus/ora#156 I tried the suggested workaround there and it's working. --- src/cli/loader/loader.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cli/loader/loader.ts b/src/cli/loader/loader.ts index 0cc4c6d262e1..d4e4526855a3 100644 --- a/src/cli/loader/loader.ts +++ b/src/cli/loader/loader.ts @@ -79,7 +79,7 @@ export class Loader { private createNewSpinner(): Ora { // for some reason the stream defaults to stderr. - return ora({ spinner: SPINNER_TYPE, text: '', stream: process.stdout }); + return ora({ spinner: SPINNER_TYPE, text: '', stream: process.stdout, discardStdin: false, hideCursor: false }); } }