Changelog so far:
1. Fixes the input from agent not being shown
2. Fixes the input from the user not being shown on page reload
3. Colors the "$" prompt with the same gold yellow from the CLI
4. When the user is typing, and something else is printed in the terminal, the current prompt is moved to the last line so the user can see what he was typing and continue.
5. If the output of a command is empty, it won't show an empty line (like a standard terminal).
6. Implements proper arrow keys (left/right for editing, home/end) support: before, the arrows were just moving the cursor around without doing anything.
7. Adds basic command history support (as long as you don't reload the page) using up/down arrow keys.
8. Adds ctrl+c (copy if text is selected, C-c(sigint) if not) and ctrl+v paste support + meta+c/meta+v (mac) copy/paste.
9. Allows using right-click paste from the browser.