Added FreeBSD support
This commit is contained in:
parent
9f6283216c
commit
1ef7d85db5
@ -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…
x
Reference in New Issue
Block a user