mirror of
https://github.com/mudler/luet.git
synced 2025-06-27 15:59:22 +00:00
* Update vendor Sabayon/pkgs-checker@v0.8.4 * Drop golang.org/x/text Co-authored-by: Ettore Di Giacinto <mudler@users.noreply.github.com>
14 lines
231 B
Go
14 lines
231 B
Go
// +build linux aix zos
|
|
// +build !js
|
|
|
|
package logrus
|
|
|
|
import "golang.org/x/sys/unix"
|
|
|
|
const ioctlReadTermios = unix.TCGETS
|
|
|
|
func isTerminal(fd int) bool {
|
|
_, err := unix.IoctlGetTermios(fd, ioctlReadTermios)
|
|
return err == nil
|
|
}
|