Added FreeBSD support
This commit is contained in:
parent
77b109b517
commit
cb8aacf9b8
4 changed files with 14 additions and 0 deletions
|
@ -1,3 +1,5 @@
|
|||
//go:build darwin || freebsd
|
||||
|
||||
package tty
|
||||
|
||||
import "golang.org/x/sys/unix"
|
|
@ -1,3 +1,5 @@
|
|||
//go:build linux
|
||||
|
||||
package tty
|
||||
|
||||
import "golang.org/x/sys/unix"
|
||||
|
|
8
tty/Terminal_other.go
Normal file
8
tty/Terminal_other.go
Normal file
|
@ -0,0 +1,8 @@
|
|||
//go:build !darwin && !freebsd && !linux && !windows
|
||||
|
||||
package tty
|
||||
|
||||
// IsTerminal is always false on unsupported platforms.
|
||||
func IsTerminal(fd uintptr) bool {
|
||||
return false
|
||||
}
|
|
@ -1,3 +1,5 @@
|
|||
//go:build windows
|
||||
|
||||
package tty
|
||||
|
||||
import "golang.org/x/sys/windows"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue