- Notifications
You must be signed in to change notification settings - Fork23
Change the color of console text.
License
NotificationsYou must be signed in to change notification settings
daviddengcn/go-colortext
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
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()
BSD/MIT license
About
Change the color of console text.
Resources
License
Stars
Watchers
Forks
Packages0
No packages published