Last change
on this file since 67 was 67, checked in by Izuru Yakumo, 23 months ago |
Use vendored modules
Signed-off-by: Izuru Yakumo <yakumo.izuru@…>
|
File size:
259 bytes
|
Line | |
---|
1 | // +build darwin dragonfly freebsd netbsd openbsd
|
---|
2 | // +build !js
|
---|
3 |
|
---|
4 | package logrus
|
---|
5 |
|
---|
6 | import "golang.org/x/sys/unix"
|
---|
7 |
|
---|
8 | const ioctlReadTermios = unix.TIOCGETA
|
---|
9 |
|
---|
10 | func isTerminal(fd int) bool {
|
---|
11 | _, err := unix.IoctlGetTermios(fd, ioctlReadTermios)
|
---|
12 | return err == nil
|
---|
13 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.