Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mattn/go-isatty
https://github.com/mattn/go-isatty
cygwin go golang isatty msys2 website
Last synced: 24 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/mattn/go-isatty
- Owner: mattn
- License: mit
- Created: 2014-04-01T01:53:09.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2023-10-17T07:30:15.000Z (7 months ago)
- Last Synced: 2024-04-09T17:11:33.688Z (about 1 month ago)
- Topics: cygwin, go, golang, isatty, msys2, website
- Language: Go
- Homepage: http://godoc.org/github.com/mattn/go-isatty
- Size: 61.5 KB
- Stars: 791
- Watchers: 12
- Forks: 106
- Open Issues: 13
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Lists
- awesome-go - go-isatty - isatty for golang. (Command Line / Advanced Console UIs)
- awesome-go - go-isatty - isatty for golang. (Command Line / Advanced Console UIs)
- awesome-go-extra - go-isatty - 04-01T01:53:09Z|2022-08-15T05:52:43Z| (Build Automation / Advanced Console UIs)
- awesome-go-cn - go-isatty
- awesome-go - go-isatty - isatty for golang. (Command Line / Advanced Console UIs)
- go-awesome - go-isatty - TTY 环境判断 (开源类库 / 命令行)
- awesome-go - go-isatty - isatty for golang. (Command Line / Advanced Console UIs)
- awesome-ccamel - mattn/go-isatty - (Go)
- awesome-go - go-isatty - isatty for golang. (Command Line / Advanced Console UIs)
- awesome-go-projects - go-isatty - isatty for golang. (Command Line / Advanced Console UIs)
- awesome-go - go-isatty - isatty for golang. (Command Line / Advanced Console UIs)
- awesome-go - go-isatty - | - | - | (Command Line / Advanced Console UIs)
- awesome-go-with-framework - go-isatty - isatty for golang. (Command Line / Advanced Console UIs)
- awesome-go - go-isatty - isatty for golang. (Command Line / Advanced Console UIs)
- awesome-go-cn - go-isatty - isatty) (命令行 / 高级控制台用户界面)
- awesome-go - go-isatty - isatty for golang. (Command Line / Advanced Console UIs)
- awesome-go - go-isatty - isatty for golang. (Command Line / Advanced Console UIs)
- awesome-go - go-isatty - GO语言的isatty。 (<span id="命令行-command-line">命令行 Command Line</span> / <span id="高级控制台用户界面-advanced-console-uis">高级控制台用户界面 Advanced Console UIs</span>)
- awesome-go. - go-isatty - isatty for golang. (Command Line / Advanced Console UIs)
- awesome-go-with-stars - go-isatty - isatty for golang. (Command Line / Advanced Console UIs)
- awesome-Char - go-isatty - isatty for golang. (Command Line / Advanced Console UIs)
- awesome-go - go-isatty - isatty for golang. (Command Line / Advanced Console UIs)
- awesome-go - go-isatty - isatty for golang. (Command Line / Advanced Console UIs)
- awesome-go-cn - go-isatty
- repo-1316-awesome-go-cn - go-isatty - isatty) (命令行 / 高级控制台用户界面)
- awesome-go-zh - go-isatty - isatty) [![godoc][D]](https://godoc.org/github.com/mattn/go-isatty) (命令行 / 高级控制台用户界面)
- repo-1211-awesome-go-cn - go-isatty - isatty) (命令行 / 高级控制台用户界面)
- awesome-reader - go-isatty - isatty for golang. (Command Line / Advanced Console UIs)
- Go-awesome - go-isatty - isatty for golang. (Command Line / Advanced Console UIs)
- awesome-go-cn - go-isatty - isatty) (命令行 / 高级控制台用户界面)
- awesome-go-handwritten - go-isatty - isatty for golang. (Command Line / Advanced Console UIs)
- go-awesome - go-isatty - TTY environment assessment (Open source library / Command Line)
- awesome-go - go-isatty - isatty for golang. (Command Line / Advanced Console UIs)
- awesome-go2 - go-isatty - isatty for golang. (Command Line / Advanced Console UIs)
- awesome-go - go-isatty - isatty for golang. (Command Line / Advanced Console UIs)
- awesome-go - go-isatty - isatty for golang. - :arrow_down:696 - :star:80 (Command Line / Advanced Console UIs)
- awesome-go - go-isatty - isatty for golang. (Command Line / Advanced Console UIs)
- go-awesome-cn-star - go-isatty
- go-awesome - go-isatty - TTY 环境判断 (开源类库 / 命令行)
- awesome-go - go-isatty - isatty for golang. (Command Line / Advanced Console UIs)
- awesome-go - go-isatty - isatty for golang. (Command Line / Advanced Console UIs)
- awesome-go-stars - go-isatty(stars: 791) - isatty for golang. (Command Line / Advanced Console UIs)
- awesome-go - go-isatty - ★ 276 (Command Line)
- awesome-go-cn - go-isatty
README
# go-isatty
[![Godoc Reference](https://godoc.org/github.com/mattn/go-isatty?status.svg)](http://godoc.org/github.com/mattn/go-isatty)
[![Codecov](https://codecov.io/gh/mattn/go-isatty/branch/master/graph/badge.svg)](https://codecov.io/gh/mattn/go-isatty)
[![Coverage Status](https://coveralls.io/repos/github/mattn/go-isatty/badge.svg?branch=master)](https://coveralls.io/github/mattn/go-isatty?branch=master)
[![Go Report Card](https://goreportcard.com/badge/mattn/go-isatty)](https://goreportcard.com/report/mattn/go-isatty)isatty for golang
## Usage
```go
package mainimport (
"fmt"
"github.com/mattn/go-isatty"
"os"
)func main() {
if isatty.IsTerminal(os.Stdout.Fd()) {
fmt.Println("Is Terminal")
} else if isatty.IsCygwinTerminal(os.Stdout.Fd()) {
fmt.Println("Is Cygwin/MSYS2 Terminal")
} else {
fmt.Println("Is Not Terminal")
}
}
```## Installation
```
$ go get github.com/mattn/go-isatty
```## License
MIT
## Author
Yasuhiro Matsumoto (a.k.a mattn)
## Thanks
* k-takata: base idea for IsCygwinTerminal
https://github.com/k-takata/go-iscygpty