Added FreeBSD support

This commit is contained in:
Eduard Urbach 2025-02-16 17:28:10 +01:00
parent 77b109b517
commit cb8aacf9b8
Signed by: eduard
GPG key ID: 49226B848C78F6C8
4 changed files with 14 additions and 0 deletions

View file

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

View file

@ -1,3 +1,5 @@
//go:build linux
package tty
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
import "golang.org/x/sys/windows"