Skip to content

ifrstr/supcolor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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