react-terminal
react-terminal copied to clipboard
How to set the input and trigger the command from external button click ?
Hello,
Is it possibile to add actions to the terminal coming not from direct input ? For example clicking the button "Hello World" it will automatically input in terminal the command "hello" and execute it.
I've tried to setInput("hello") or using setTemporaryText or useBufferedContent or by direct calling the defaultHandler custom function but I wasn't able to achieve the goal described above.
Thanks