0
0
forked from toolshed/abra

chore: vendor

This commit is contained in:
2024-08-04 11:06:58 +02:00
parent 2a5985e44e
commit 04aec8232f
3557 changed files with 981078 additions and 1 deletions

22
vendor/github.com/muesli/termenv/termenv_solaris.go generated vendored Normal file
View File

@ -0,0 +1,22 @@
//go:build solaris || illumos
// +build solaris illumos
package termenv
import (
"golang.org/x/sys/unix"
)
func isForeground(fd int) bool {
pgrp, err := unix.IoctlGetInt(fd, unix.TIOCGPGRP)
if err != nil {
return false
}
g, err := unix.Getpgrp()
if err != nil {
return false
}
return pgrp == g
}