Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Better user input helper #930

Merged
merged 3 commits into from
Aug 28, 2015
Merged

Conversation

vbfox
Copy link
Contributor

@vbfox vbfox commented Aug 27, 2015

I was using the UserInputHelper and noticed a few problems and I also couldn't resist adding a few features.

Bugs fixed :

  • In the previous code backspace moved back in the input but didn't remove
    the previous character from screen.
  • Backspace could move before the starting point of the text, visually
    erasing the prompt. It is now impossible.
  • Previously getUserInput wasn't generating a new line after the prompt but
    getUserPassword was doing it. The behavior is now unified (They both generate one)

Features added

  • The prompt now display in white while the value entered by the user is
    gray (as before).
  • Password prompts now give a visible feedback in the
    form of '*' characters instead of nothing.

Previously getUserInput wasn't generating a new line after the prompt but
getUserPassword was doing it. The behavior is now unified.
The prompt now display in white while the value entered by the user is
gray (as before).
This fixes a few bugs and added a features :
* In the previous code backspace moved back in the input but didn't remove
  the previous character from screen.
* Backspace could move before the starting point of the text, visually
  erasing the prompt. It is now impossible.
* The feature is that password prompts now give a visible feedback in the
  form of '*' characters instead of nothing.
@forki
Copy link
Member

forki commented Aug 28, 2015

thx

forki added a commit that referenced this pull request Aug 28, 2015
@forki forki merged commit 3d6d6df into fsprojects:master Aug 28, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants