An open API service indexing awesome lists of open source software.

https://github.com/qshuai/tcolor

A convenient package for colorful terminal output written in Go
https://github.com/qshuai/tcolor

convenient golang terminal-colors

Last synced: 5 months ago
JSON representation

A convenient package for colorful terminal output written in Go

Awesome Lists containing this project

README

          

tcolor
===

tcolor aims to supply a convenient package for formating your **colorful terminal output**. At the current version, tcolor supports eight different colors(Black、 Red、Green、Yellow、Blue、Purple、Cyan、White) with four kinds of style(regular、bold、underline、background). If you get interesting colors style, please contribute to this repository.

#### Usage:

Please reference to [example](https://github.com/qshuai/tcolor/blob/master/example/main.go).

#### Style Display:

![color schema](https://github.com/qshuai/tcolor/blob/master/snapshot/color%20schema.png)

#### Bugs:

- The background mode will affect the next line.