react-terminal-ui icon indicating copy to clipboard operation
react-terminal-ui copied to clipboard

Allow more control over terminal input via component API

Open jonmbake opened this issue 4 years ago • 1 comments

Is your feature request related to a problem? Please describe. The API to the component does not allow much control over input behavior. For example, setting a value or performing some action on input change.

Describe the solution you'd like Add an InputController prop that allows setting input value and listening for input change. The API could be something like:

class InputController
  + triggerInputChange(String input)
  + onInputChange(String input)
  + onInputReceived(String input)

Describe alternatives you've considered Some alternatives were discussed in https://github.com/jonmbake/react-terminal-ui/issues/5

Additional context See https://github.com/jonmbake/react-terminal-ui/issues/5

jonmbake avatar Jun 04 '21 23:06 jonmbake

please fix arrow keys while you are at it :)

joranbeasley avatar Jul 22 '22 04:07 joranbeasley