jonmbake / react-terminal-ui

A terminal react component with support for light and dark modes.
https://jonmbake.github.io/react-terminal-ui/demo/
MIT License
212 stars 32 forks source link

Hide password input #7

Open Jean-PhilippeD opened 3 years ago

Jean-PhilippeD commented 3 years ago

Is your feature request related to a problem? Please describe. Yes and no. When user is asked to fill a password, the input is visible, I think either blank or * should appeared instead of the caracters

Describe the solution you'd like Maybe a props passwordFieldor hideField set to true passed to the Terminal so when the parent component knows that the next input is a password, you can set the field to trueuntil next input so that Terminal could replace the visible caracters with * or blank