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

How to set the input and trigger the command from external button click ?

Open Blimes opened this issue 4 months ago • 0 comments

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

Blimes avatar Oct 25 '24 10:10 Blimes