[READ-ONLY] Mirror of https://github.com/bombshell-dev/clack. Effortlessly build beautiful command-line apps bomb.sh/docs/clack/basics/getting-started/
cli command-line command-line-app node prompt prompts
5

Configure Feed

Select the types of activity you want to include in your feed.

fix: clearPrevMessage validation

Bruno Rocha (Nov 26, 2024, 10:38 AM -0300) 4044c031 52317d70

+2 -2
+2 -2
packages/prompts/src/index.ts
··· 8 8 SelectKeyPrompt, 9 9 SelectPrompt, 10 10 State, 11 - TextPrompt 11 + TextPrompt, 12 12 } from '@clack/core'; 13 13 import { isCI } from 'ci-info'; 14 14 import isUnicodeSupported from 'is-unicode-supported'; ··· 675 675 }; 676 676 677 677 const clearPrevMessage = () => { 678 - if (!_prevMessage) return; 678 + if (_prevMessage === undefined) return; 679 679 if (isCI) process.stdout.write('\n'); 680 680 const prevLines = _prevMessage.split('\n'); 681 681 process.stdout.write(cursor.move(-999, prevLines.length - 1));