Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build and run on Windows? #74

Open
jgstew opened this issue Aug 10, 2023 · 2 comments
Open

Build and run on Windows? #74

jgstew opened this issue Aug 10, 2023 · 2 comments

Comments

@jgstew
Copy link

jgstew commented Aug 10, 2023

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
Copy link
Author

jgstew commented Aug 10, 2023

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\[email protected]\pty_master.go:46:31: undefined: ptyDevice.Start
..\..\..\go\pkg\mod\github.com\elisescu\[email protected]\pty_master.go:82:12: undefined: ptyDevice.Setsize
..\..\..\go\pkg\mod\github.com\elisescu\[email protected]\pty_master.go:110:24: undefined: syscall.SIGWINCH
..\..\..\go\pkg\mod\github.com\elisescu\[email protected]\pty_master.go:122:39: undefined: syscall.SIGWINCH

@jgstew
Copy link
Author

jgstew commented Aug 10, 2023

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:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant