ifrstr / supcolor

Determine whether a terminal supports color.
https://pkg.go.dev/gopkg.ilharper.com/x/supcolor
MIT License
0 stars 0 forks source link

supcolor

Go Reference Go Report Card

Determine whether a terminal supports color.

Install

go get gopkg.ilharper.com/x/supcolor

Usage

import "gopkg.ilharper.com/x/supcolor"

// Variables (int8)
// https://github.com/chalk/supports-color#api
supcolor.Stdout // supcolor.SupColor(os.Stdout)
supcolor.Stderr // supcolor.SupColor(os.Stderr)

Go Reference

LICENSE

MIT