Describe the bug
A clear and concise description of what the bug is.
When adding initiailValue for promptText there's a trailing underscore which seems to be a cursor; this leads to confusing experience, especially if we already have an underscore in the text
To Reproduce
Include a link to a minimal reproduction using node.new
const name = await promptText({
message:
"What's the secret name?",
initialValue: 'MY_TOP_SECRET',
});
Results in:
Steps to reproduce the behavior:
Include reproduction steps
Expected behavior
A clear and concise description of what you expected to happen.
There should be no underscore that acts like a cursor. Just the cursor should be displayed.
Additional Information
If applicable, add screenshots to help explain your problem.
Environment
@clack/prompts
,@clack/core
]: @clack/prompts": "^0.6.3",Describe the bug A clear and concise description of what the bug is. When adding initiailValue for
promptText
there's a trailing underscore which seems to be a cursor; this leads to confusing experience, especially if we already have an underscore in the textTo Reproduce Include a link to a minimal reproduction using
node.new
Results in:![image](https://github.com/natemoo-re/clack/assets/1793305/259a4ead-9a6b-496c-8508-6ff6acd6a55d)
Steps to reproduce the behavior:
Expected behavior A clear and concise description of what you expected to happen. There should be no underscore that acts like a cursor. Just the cursor should be displayed.
Additional Information If applicable, add screenshots to help explain your problem.