Skip to content

Commit e5ba09a

Browse files
authoredDec 28, 2024··
Use block character as cursor placeholder (#222)
1 parent 8cba8e3 commit e5ba09a

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed
 

‎.changeset/red-glasses-grin.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
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).

‎packages/core/src/prompts/text.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ export default class TextPrompt extends Prompt {
1212
return this.value;
1313
}
1414
if (this.cursor >= this.value.length) {
15-
return `${this.value}${color.inverse(color.hidden('_'))}`;
15+
return `${this.value}`;
1616
}
1717
const s1 = this.value.slice(0, this.cursor);
1818
const [s2, ...s3] = this.value.slice(this.cursor);

0 commit comments

Comments
 (0)
Please sign in to comment.