term icon indicating copy to clipboard operation
term copied to clipboard

term: need windows support

Open davecheney opened this issue 10 years ago • 3 comments

16b2e60 make term/termios a noop under windows, but the higher level term package is still POSIX specific.

The plan is to add a new low level package for windows, term/win32 (just an example, please don't flame) and adjust the term package to use it depending on the host GOOS.

davecheney avatar Feb 26 '15 00:02 davecheney

As to the noop, this package doesn't build on (my) Windows:

$ go get github.com/pkg/term
# github.com/pkg/term/termios
C:\Users\bep\go\src\github.com\pkg\term\termios\pty.go:25: undefined: ptsname
C:\Users\bep\go\src\github.com\pkg\term\termios\pty.go:30: undefined: grantpt
C:\Users\bep\go\src\github.com\pkg\term\termios\pty.go:35: undefined: unlockpt

bep avatar Jan 05 '16 21:01 bep

Has anyone managed to solve it? Ty

marcuxyz avatar May 07 '17 01:05 marcuxyz

+1 for Windows support

mozillazg avatar Dec 23 '17 08:12 mozillazg