pkg / term

Package term manages POSIX terminals.
BSD 2-Clause "Simplified" License
393 stars 64 forks source link

term: need windows support #8

Open davecheney opened 9 years ago

davecheney commented 9 years ago

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.

bep commented 8 years ago

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
marcuxyz commented 7 years ago

Has anyone managed to solve it? Ty

mozillazg commented 6 years ago

+1 for Windows support