Need help with go-colortext?
Click the “chat” button below for chat support from the developer who created it, or find similar developers for support.

About the developer

daviddengcn
205 Stars 17 Forks Other 39 Commits 4 Opened issues

Description

Change the color of console text.

Services available

!
?

Need anything else?

Contributors list

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:

go
ct.Foreground(Green, false)
fmt.Println("Green text starts here...")
ct.ChangeColor(Red, true, White, false)
fmt.Println(...)
ct.ResetColor()

LICENSE

BSD/MIT license

We use cookies. If you continue to browse the site, you agree to the use of cookies. For more information on our use of cookies please see our Privacy Policy.