title: How to make xterm.js accept input?
body: <p>I'm using xterm.js for a project but I can't get it to accept input. Whenever I try to type in the terminal nothing happens and there's no documentation or examples telling how to accomplish this.</p>
  
  <p>This is what I have:</p>
  
  <pre><code>const term = new XTerm({
      cols: 100,
      cursorBlink: true,
      rows: 120
  });
  term.open(document.getElementById('terminal-window'), true)
  term.fit()
  term.writeln('Hello World!')
  </code></pre>