go-colortext
CategoryCommand Line
SubcategoryAdvanced Console UIs
Stars0
Go library for color output in terminals
About go-colortext
go-colortext package ![GoSearch]()
This is a package to change the color of the text and background in the console, working both under Windows and other systems.
Under Windows, the console APIs are used. Otherwise, ANSI texts are output.
Docs: http://godoc.org/github.com/daviddengcn/go-colortext (packages that import ct)
Usage:
ct.Foreground(Green, false)
fmt.Println("Green text starts here...")
ct.ChangeColor(Red, true, White, false)
fmt.Println(...)
ct.ResetColor()
LICENSE
BSD/MIT license
Frequently Asked Questions
What is go-colortext?
go-colortext is a Command Line library for the Go programming language. Go library for color output in terminals
How do I install go-colortext?
Install go-colortext with the Go module system using `go get daviddengcn/go-colortext`. Check the repository for the current installation instructions.
What category does go-colortext belong to?
go-colortext is listed under Command Line, specifically Advanced Console UIs.