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
209 Stars 20 Forks Other 39 Commits 4 Opened issues

Description

Change the color of console text.

Services available

!
?

Need anything else?

Contributors list

# 200,115
Go
Python
23 commits
# 498,904
Shell
Common ...
HTML
sed
2 commits
# 121,021
Linux
Go
blogs
Shell
1 commit
# 338,418
Go
Python
graphit...
bmp
1 commit
# 320,900
Python
Shell
Go
vscode
1 commit

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.