This demo was built for the Gitlab team.
It opens a web-based console connected to a
running in a virtual terminal on the server side.
./demo and then open http://localhost:5000
You will get a web-based terminal.
main.go and replace the path of
That's the simplest implementation of this.
Detect "window resize" in a browser and pass the new window size into the server via AJAx.
On the server side, call SetSize() on the virtual TTY.