code: function (cmd, blind, response) {
    var toecho = '';
    if (typeof cmd !== 'string') {
      toecho = cmd.echo;
      blind = cmd.blind;
      response = cmd.response;
      cmd = cmd.cmd;
    } else {
      toecho = cmd;
    }
  
    cmd = trim(cmd);
  
    // Add the command to the user's history – unless this was blind
    if (!blind) {
      history.push(cmd.trim());
      setHistory(history);
    }
  
    // Show the user what they typed
    echo(toecho.trim());
  
    // If we were handed a response, show the response straight away – otherwise
    // runs it
    if (response) return showResponse(response);
    run(cmd, showResponse);
  
    setCursorTo('');
  
  }
docs: Run and show response to a command fired from the console