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.
^ 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.
No comments yet.