aboutsummaryrefslogtreecommitdiffhomepage
path: root/vendor/github.com/fsouza/go-dockerclient/external/github.com/Sirupsen/logrus/terminal_notwindows.go
diff options
context:
space:
mode:
authorAlex Pilon <apilon@hashicorp.com>2019-02-22 18:24:22 -0500
committerAlex Pilon <apilon@hashicorp.com>2019-02-22 18:24:22 -0500
commit07971ca38143c5faf951d152fba370ddcbe26ad5 (patch)
tree09af1ef91c782de921efc83113907184c8adecee /vendor/github.com/fsouza/go-dockerclient/external/github.com/Sirupsen/logrus/terminal_notwindows.go
parent9b6f05970a001f683b9c886c652de81f00cd5f00 (diff)
downloadterraform-provider-statuscake-07971ca38143c5faf951d152fba370ddcbe26ad5.tar.gz
terraform-provider-statuscake-07971ca38143c5faf951d152fba370ddcbe26ad5.tar.zst
terraform-provider-statuscake-07971ca38143c5faf951d152fba370ddcbe26ad5.zip
deps: use go modules for dep mgmt
run go mod tidy remove govendor from makefile and travis config set appropriate env vars for go modules
Diffstat (limited to 'vendor/github.com/fsouza/go-dockerclient/external/github.com/Sirupsen/logrus/terminal_notwindows.go')
-rw-r--r--vendor/github.com/fsouza/go-dockerclient/external/github.com/Sirupsen/logrus/terminal_notwindows.go21
1 files changed, 0 insertions, 21 deletions
diff --git a/vendor/github.com/fsouza/go-dockerclient/external/github.com/Sirupsen/logrus/terminal_notwindows.go b/vendor/github.com/fsouza/go-dockerclient/external/github.com/Sirupsen/logrus/terminal_notwindows.go
deleted file mode 100644
index b343b3a..0000000
--- a/vendor/github.com/fsouza/go-dockerclient/external/github.com/Sirupsen/logrus/terminal_notwindows.go
+++ /dev/null
@@ -1,21 +0,0 @@
1// Based on ssh/terminal:
2// Copyright 2011 The Go Authors. All rights reserved.
3// Use of this source code is governed by a BSD-style
4// license that can be found in the LICENSE file.
5
6// +build linux darwin freebsd openbsd netbsd dragonfly
7
8package logrus
9
10import (
11 "syscall"
12 "unsafe"
13)
14
15// IsTerminal returns true if stderr's file descriptor is a terminal.
16func IsTerminal() bool {
17 fd := syscall.Stderr
18 var termios Termios
19 _, _, err := syscall.Syscall6(syscall.SYS_IOCTL, uintptr(fd), ioctlReadTermios, uintptr(unsafe.Pointer(&termios)), 0, 0, 0)
20 return err == 0
21}