pkg / term

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

Fix build on illumos #58

Closed andy-js closed 3 years ago

andy-js commented 3 years ago

The syscall -> unix rename broke a few things on illumos/solaris:

% go install -v ./...
github.com/pkg/term
# github.com/pkg/term
./term.go:71:2: not enough arguments to return
    have (error)
    want (int, error)
./term.go:71:24: not enough arguments in call to termios.Tiocinq
    have (uintptr)
    want (uintptr, *int)
./term.go:76:2: not enough arguments to return
    have (error)
    want (int, error)
./term.go:76:25: not enough arguments in call to termios.Tiocoutq
    have (uintptr)
    want (uintptr, *int)
./term_solaris.go:21:48: cannot convert a (type *attr) to type *syscall.Termios
./term_solaris.go:62:7: undefined: syscall.B500000
./term_solaris.go:64:7: undefined: syscall.B576000
./term_solaris.go:142:68: undefined: unix.StringBytePtr
andy-js commented 3 years ago

Bump.