Move terminal package

fixes issue where terminal_check_notappengine.go can't access terminal
package since terminal package is in an internal package
This commit is contained in:
Jessica Paczuski
2019-03-28 11:32:49 +01:00
parent 787e519fa8
commit c49ef1d4bf
3 changed files with 1 additions and 1 deletions
-13
View File
@@ -1,13 +0,0 @@
// +build darwin dragonfly freebsd netbsd openbsd
package terminal
import "golang.org/x/sys/unix"
const ioctlReadTermios = unix.TIOCGETA
func IsTerminal(fd int) bool {
_, err := unix.IoctlGetTermios(fd, ioctlReadTermios)
return err == nil
}
-13
View File
@@ -1,13 +0,0 @@
// +build linux aix
package terminal
import "golang.org/x/sys/unix"
const ioctlReadTermios = unix.TCGETS
func IsTerminal(fd int) bool {
_, err := unix.IoctlGetTermios(fd, ioctlReadTermios)
return err == nil
}