Added FreeBSD support

This commit is contained in:
Eduard Urbach 2025-02-16 17:28:10 +01:00
parent 9f6283216c
commit 1ef7d85db5
Signed by: akyoto
GPG Key ID: C874F672B1AF20C0
4 changed files with 14 additions and 0 deletions

View File

@ -1,3 +1,5 @@
//go:build darwin || freebsd
package tty package tty
import "golang.org/x/sys/unix" import "golang.org/x/sys/unix"

View File

@ -1,3 +1,5 @@
//go:build linux
package tty package tty
import "golang.org/x/sys/unix" import "golang.org/x/sys/unix"

8
tty/Terminal_other.go Normal file
View 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
}

View File

@ -1,3 +1,5 @@
//go:build windows
package tty package tty
import "golang.org/x/sys/windows" import "golang.org/x/sys/windows"