tea/vendor/github.com/mattn/go-isatty
6543 89e93d90b3 Use glamour and termev to render/colorize content (#181)
Merge branch 'master' into use-glamour

select Glamour Theme based on BackgroundColor

Merge branch 'master' into use-glamour

Merge branch 'master' into use-glamour

update termev

update go.mod

label color colorate

use glamour for issue content

Vendor: Add glamour

Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
Co-authored-by: 6543 <6543@obermui.de>
Reviewed-on: https://gitea.com/gitea/tea/pulls/181
Reviewed-by: techknowlogick <techknowlogick@gitea.io>
Reviewed-by: Lunny Xiao <xiaolunwen@gmail.com>
2020-09-19 16:00:50 +00:00
..
.travis.yml Use glamour and termev to render/colorize content (#181) 2020-09-19 16:00:50 +00:00
LICENSE Use glamour and termev to render/colorize content (#181) 2020-09-19 16:00:50 +00:00
README.md Use glamour and termev to render/colorize content (#181) 2020-09-19 16:00:50 +00:00
doc.go Use glamour and termev to render/colorize content (#181) 2020-09-19 16:00:50 +00:00
go.mod Use glamour and termev to render/colorize content (#181) 2020-09-19 16:00:50 +00:00
go.sum Use glamour and termev to render/colorize content (#181) 2020-09-19 16:00:50 +00:00
go.test.sh Use glamour and termev to render/colorize content (#181) 2020-09-19 16:00:50 +00:00
isatty_bsd.go Use glamour and termev to render/colorize content (#181) 2020-09-19 16:00:50 +00:00
isatty_others.go Use glamour and termev to render/colorize content (#181) 2020-09-19 16:00:50 +00:00
isatty_plan9.go Use glamour and termev to render/colorize content (#181) 2020-09-19 16:00:50 +00:00
isatty_solaris.go Use glamour and termev to render/colorize content (#181) 2020-09-19 16:00:50 +00:00
isatty_tcgets.go Use glamour and termev to render/colorize content (#181) 2020-09-19 16:00:50 +00:00
isatty_windows.go Use glamour and termev to render/colorize content (#181) 2020-09-19 16:00:50 +00:00
renovate.json Use glamour and termev to render/colorize content (#181) 2020-09-19 16:00:50 +00:00

README.md

go-isatty

Godoc Reference Codecov Coverage Status Go Report Card

isatty for golang

Usage

package main

import (
	"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