pkg / term

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

termios: reimplement for NetBSD without cgo #39

Closed tklauser closed 5 years ago

tklauser commented 5 years ago

Instead of calling C.posix_openpt, C.ptsname, C.grantpt and C.unlockpt reimplement them in Go according to the respective man pages:

http://netbsd.gw.com/cgi-bin/man-cgi?posix_openpt++NetBSD-current http://netbsd.gw.com/cgi-bin/man-cgi?ptsname+3+NetBSD-current http://netbsd.gw.com/cgi-bin/man-cgi?grantpt+3+NetBSD-current http://netbsd.gw.com/cgi-bin/man-cgi?unlockpt+3+NetBSD-current

Signed-off-by: Tobias Klauser tklauser@distanz.ch