[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.

Use block character as cursor placeholder (#222)

authored by

Nate Moore and committed by
GitHub
(Dec 27, 2024, 10:42 PM -0600) e5ba09ad 8cba8e3f

+6 -1
+5
.changeset/red-glasses-grin.md
··· 1 + --- 2 + "@clack/core": patch 3 + --- 4 + 5 + Fixes a cursor display bug in terminals that do not support the "hidden" escape sequence. See [Issue #127](https://github.com/bombshell-dev/clack/issues/127).
+1 -1
packages/core/src/prompts/text.ts
··· 12 12 return this.value; 13 13 } 14 14 if (this.cursor >= this.value.length) { 15 - return `${this.value}${color.inverse(color.hidden('_'))}`; 15 + return `${this.value}█`; 16 16 } 17 17 const s1 = this.value.slice(0, this.cursor); 18 18 const [s2, ...s3] = this.value.slice(this.cursor);