title: JavaScript, about coreCmds
body: <p>With this script from there: <a href="https://codepen.io/isdampe/pen/YpgOYr" rel="nofollow noreferrer">https://codepen.io/isdampe/pen/YpgOYr</a></p>
  <p>How do I add a space to a command? How do I make the command &quot;clear&quot; for example, have to be &quot;clear x&quot; to work? Because, as such, the script does not accept spaces for its commands.</p>
  <p>I tried :</p>
  <pre><code>function fauxTerm(config) {
    
    var term = config.el || document.getElementById('term');
    var termBuffer = config.initialMessage || '';
    var lineBuffer = config.initialLine || '';
    var cwd = config.cwd || &quot;~/&quot;;
    var tags = config.tags || ['red', 'blue', 'white', 'bold'];
    var processCommand = config.cmd || false;
    var maxBufferLength = config.maxBufferLength || 8192;
    var commandHistory = [];
    var currentCommandIndex = -1;
    var maxCommandHistory = config.maxCommandHistory || 100;
    var autoFocus = config.autoFocus || false;
    var coreCmds = {
      &quot;clear x&quot;: clear // only &quot;clear&quot; will be recognized, why?
    };
  </code></pre>
  <p>I can create commands, but I can't create them with a space.</p>