Documentation ¶
Overview ¶
Companion code for the Linux terminals blog series: https://dev.to/napicella/linux-terminals-tty-pty-and-shell-192e I have simplified the code to highlight the interesting bits for the purpose of the blog post: - windows resizing is not addressed - client does not catch signals (CTRL + C, etc.) to gracefully close the tcp connection
Build: go build -o remote main.go In one terminal run: ./remote -server In another terminal run: ./remote
Run on multiple machines: In the client function, replace the loopback address with IP of the machine, then rebuild Beware the unecrypted TCP connection!
Click to show internal directories.
Click to hide internal directories.