Skip to content
This repository has been archived by the owner on Apr 19, 2024. It is now read-only.

Avoid hiding the cursor in the input #345

Closed
saurabhaditya opened this issue Mar 31, 2021 · 3 comments
Closed

Avoid hiding the cursor in the input #345

saurabhaditya opened this issue Mar 31, 2021 · 3 comments

Comments

@saurabhaditya
Copy link

Is it possible to pull this two-line change in this library? - apolitis-work@19661d7

We found that showing the cursor was a better user experience.

saurabhaditya added a commit to saurabhaditya/survey that referenced this issue Mar 31, 2021
@AlecAivazis
Copy link
Owner

Hey @saurabhaditya -

I think this kind of opinion is hard to label as "better". I think a more viable change would be to have a configuration option to hide or show the cursor, would that address your needs?

@dmartin35
Copy link
Contributor

Hello,

I have been able to make a PR, for adding an option to Ask, AskOne, for showing/hiding the cursor.
Would a solution like that work ?
#348

it can be used like that:

err := survey.Ask(simpleQs, &ansmap, survey.WithShowCursor(true))

Looking forward for your thoughts on it, thanks

@AlecAivazis
Copy link
Owner

Closing this - its been released as part of v2.2.12

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants