go-colortext - Go实现着色终端输出
go-colortext - Go实现着色终端输出,更改控制台文本的颜色
Go 命令行/控制台
共205Star
详细介绍
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
-
105 Star
-
3587 Star
-
1192 Star
-
0 Star
-
20 Star
-
935 Star
-
345 Star
-
622 Star
-
0 Star
-
173 Star