Hacker News new | ask | show | jobs
by JamesMcMinn 3954 days ago
https://github.com/yudai/gotty/blob/master/app/app.go#L73-L1...

^ Those are the key lines really.

It's running the command in a pseudo-terminal, capturing the output (as text) and sending it over a web socket.