aboutsummaryrefslogtreecommitdiffstats
path: root/vendor/github.com/mattn/go-isatty/README.md
blob: 74845de4a24be6b5537bbad9636c69949f459f05 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
# go-isatty

isatty for golang

## Usage

```go
package main

import (
    "fmt"
    "github.com/mattn/go-isatty"
    "os"
)

func main() {
    if isatty.IsTerminal(os.Stdout.Fd()) {
        fmt.Println("Is Terminal")
    } else {
        fmt.Println("Is Not Terminal")
    }
}
```

## Installation

```
$ go get github.com/mattn/go-isatty
```

# License

MIT

# Author

Yasuhiro Matsumoto (a.k.a mattn)