react-terminal
                                
                                 react-terminal copied to clipboard
                                
                                    react-terminal copied to clipboard
                            
                            
                            
                        Programatically run commands
Is it possible to run commands or just print things to the terminal without actually typing in a command? At the moment the following code runs (console.log works), but just doesnt print anything in the terminal. Seems unusual.
Example:
const welcomeMessage = (
    <span>
        <span style={link} onClick={() => commands.copy()}>
          Click here
        </span>{" "}
        to try to run a function to print to terminal.
      </span>
  );
const commands = {
    copy: () => {
      console.log("success?");
      return <span>Success!</span>;
    }
  };
Seems realsted to https://github.com/bony2023/react-terminal/issues/173
feature added in https://github.com/bony2023/react-terminal/pull/233