Skip to content

Latest commit

 

History

History
29 lines (19 loc) · 813 Bytes

README.md

File metadata and controls

29 lines (19 loc) · 813 Bytes

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