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

New feature: Support hidden input (for passwords and the like). #8

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

andreas-kupries
Copy link

Controlled by internal global flag variable "is_hidden".
Added two new accessor functions to set and retrieve the flag's state.
(Avoided changing the signature of linenoise()).

Activating hidden input

  • Causes all entered characters to be echoed back as '*'.
  • Disables navigating and searching the history.
  • Disables line completion.
  • All other editing commands are left active.

Controlled by internal global flag variable "is_hidden".
Added two new accessor functions to set and retrieve the flag's state.
(Avoided changing the signature of linenoise()).

Activating hidden input
- Causes all entered characters to be echoed back as '*'.
- Disables navigating and searching the history.
- Disables line completion.
- All other editing commands are left active.
@andreas-kupries
Copy link
Author

Rebased code pushed

@msteveb
Copy link
Owner

msteveb commented Feb 21, 2013

I still need to convince myself that there is enough value-add in this feature. Since history, and to a lesser extent editing, don't make sense for hidden input I'm not certain there is enough value here for it to be part of linenoise.

I will think about it a bit more though.

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