cockpit-project/cockpit — pull request #346 by stefwalter (2014-03-26 22:38:57+00:00)
Title: Show a terminal in container details

Working terminal for containter details.

This includes term.js which is MIT licensed.

Show a usable terminal in container details, where you can type see output, scroll, etc.

It's not perfect: there's no cursor, and disconnects when the container stops. But other than that seems to work well.

For now we show the terminal when the docker container has a tty. But this seems like the default. When no tty Docker's ```/attach``` command uses a strange binary framing, which we can't handle on our ```text-stream``` socket.