crazy shit.

This commit is contained in:
didier committed 2024-08-09 09:55:52 -04:00
1 parent d57a00bbc8
commit 7bf9a0398f
356 files changed
+196503 -3

No files matched your search

+13
View File
@@ -0,0 +1,13 @@
// +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
}