elisescu / tty-share

Share your linux or osx terminal over the Internet.
https://tty-share.com/
MIT License
806 stars 87 forks source link

Build and run on Windows? #74

Open jgstew opened 1 year ago

jgstew commented 1 year ago

Is there any reason this wouldn't work on windows?

I'm curious if anyone has tried it or documented it if it works and what the requirements are.

jgstew commented 1 year ago

I tried the following in GIT Bash on Windows, as well as in PowerShell shell, and both gave the same result:

$ go install github.com/elisescu/tty-share@latest
go: downloading github.com/elisescu/tty-share v0.6.2
go: downloading github.com/elisescu/pty v1.0.2
go: downloading github.com/sirupsen/logrus v1.4.2
go: downloading golang.org/x/crypto v0.0.0-20191227163750-53104e6ec876
go: downloading github.com/konsorten/go-windows-terminal-sequences v1.0.2
go: downloading golang.org/x/sys v0.0.0-20200103143344-a1369afcdac7
# github.com/elisescu/tty-share
..\..\..\go\pkg\mod\github.com\elisescu\tty-share@v0.6.2\pty_master.go:46:31: undefined: ptyDevice.Start
..\..\..\go\pkg\mod\github.com\elisescu\tty-share@v0.6.2\pty_master.go:82:12: undefined: ptyDevice.Setsize
..\..\..\go\pkg\mod\github.com\elisescu\tty-share@v0.6.2\pty_master.go:110:24: undefined: syscall.SIGWINCH
..\..\..\go\pkg\mod\github.com\elisescu\tty-share@v0.6.2\pty_master.go:122:39: undefined: syscall.SIGWINCH
jgstew commented 1 year ago

It seems like the issue with Windows support is due to the lack of support in the underlying PTY library, and there is an issue related to it here: