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
205 stars 30 forks source link

Allow input toggle #32

Open drageelr opened 1 year ago

drageelr commented 1 year ago

Is your feature request related to a problem? Please describe. I'm trying to simulate a command execution that takes several inputs throughout its lifecycle. To give a more realistic feel to the simulation, I want to toggle the input prompt off while the command is executing and doesn't require any input, however, as soon as an input is required I turn the input prompt on.

Describe the solution you'd like A state that enables/disables the input prompt.

Describe alternatives you've considered I would probably have to use a use effect hook to hide/show the input element, but it would be more convenient if this solution can be implemented.

github-actions[bot] commented 1 year ago

Thank you for taking the time to submit an Issue! You should get a response to this issue within one to two days.