Make isTerminal un-exported

This commit is contained in:
Andrey Tcherepanov
2019-04-01 10:16:11 -06:00
parent 3e06420226
commit ede5b639cd
3 changed files with 5 additions and 7 deletions
+2 -2
View File
@@ -1,12 +1,12 @@
// +build linux aix
package terminal
package logrus
import "golang.org/x/sys/unix"
const ioctlReadTermios = unix.TCGETS
func IsTerminal(fd int) bool {
func isTerminal(fd int) bool {
_, err := unix.IoctlGetTermios(fd, ioctlReadTermios)
return err == nil
}