Sha256: a26c0a5ade85bf7c69704d545a98548e0b91927a237f13b4905b7eed789c50b7

Contents?: true

Size: 231 Bytes

Versions: 16

Compression:

Stored size: 231 Bytes

Contents

// +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
}

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
ruby_snowflake_client-1.3.7 ext/vendor/github.com/sirupsen/logrus/terminal_check_unix.go
ruby_snowflake_client-1.3.6 ext/vendor/github.com/sirupsen/logrus/terminal_check_unix.go
ruby_snowflake_client-1.3.5 ext/vendor/github.com/sirupsen/logrus/terminal_check_unix.go
ruby_snowflake_client-1.3.4 ext/vendor/github.com/sirupsen/logrus/terminal_check_unix.go
ruby_snowflake_client-1.3.4.pre.debug ext/vendor/github.com/sirupsen/logrus/terminal_check_unix.go
ruby_snowflake_client-1.3.3.pre.debug ext/vendor/github.com/sirupsen/logrus/terminal_check_unix.go
ruby_snowflake_client-1.3.2 ext/vendor/github.com/sirupsen/logrus/terminal_check_unix.go
ruby_snowflake_client-1.3.1 ext/vendor/github.com/sirupsen/logrus/terminal_check_unix.go
ruby_snowflake_client-1.3.0 ext/vendor/github.com/sirupsen/logrus/terminal_check_unix.go
ruby_snowflake_client-1.2.1 ext/vendor/github.com/sirupsen/logrus/terminal_check_unix.go
ruby_snowflake_client-1.2.0 ext/vendor/github.com/sirupsen/logrus/terminal_check_unix.go
ruby_snowflake_client-1.1.1 ext/vendor/github.com/sirupsen/logrus/terminal_check_unix.go
ruby_snowflake_client-1.1.0 ext/vendor/github.com/sirupsen/logrus/terminal_check_unix.go
ruby_snowflake_client-1.0.2 ext/vendor/github.com/sirupsen/logrus/terminal_check_unix.go
ruby_snowflake_client-1.0.1 ext/vendor/github.com/sirupsen/logrus/terminal_check_unix.go
ruby_snowflake_client-1.0.0 ext/vendor/github.com/sirupsen/logrus/terminal_check_unix.go