Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/daviddengcn/go-colortext
Change the color of console text.
https://github.com/daviddengcn/go-colortext
Last synced: 24 days ago
JSON representation
Change the color of console text.
- Host: GitHub
- URL: https://github.com/daviddengcn/go-colortext
- Owner: daviddengcn
- License: other
- Created: 2013-01-23T03:38:54.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2020-03-29T21:12:20.000Z (about 4 years ago)
- Last Synced: 2024-01-30T04:04:38.318Z (4 months ago)
- Language: Go
- Size: 18.6 KB
- Stars: 214
- Watchers: 10
- Forks: 22
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Lists
- awesome-go - go-colortext - Go library for color output in terminals. (Command Line / Advanced Console UIs)
- awesome-go - go-colortext - Go library for color output in terminals. (Command Line / Advanced Console UIs)
- awesome-go-extra - go-colortext - 01-23T03:38:54Z|2020-03-29T21:12:20Z| (Build Automation / Advanced Console UIs)
- awesome-go - go-colortext - Go library for color output in terminals. (Command Line / Advanced Console UIs)
- awesome-go - go-colortext - Go library for color output in terminals. (Command Line / Advanced Console UIs)
- awesome-go - go-colortext - Go library for color output in terminals. (Command Line / Advanced Console UIs)
- fucking-awesome-go - :octocat: go-colortext - Go library for color output in terminals. :star: 143 :fork_and_knife: 12 (Command Line / Advanced Console UIs)
- awesome-go-projects - go-colortext - Go library for color output in terminals. (Command Line / Advanced Console UIs)
- awesome-go - go-colortext - Go library for color output in terminals. (Command Line / Advanced Console UIs)
- awesome-go - go-colortext - | - | - | (Command Line / Advanced Console UIs)
- awesome-go - go-colortext - Go library for color output in terminals. (Command Line / Advanced Console UIs)
- awesome-go-with-framework - go-colortext - Go library for color output in terminals. (Command Line / Advanced Console UIs)
- awesome-go - go-colortext - Go library for color output in terminals. (Command Line / Advanced Console UIs)
- awesome-go-cn - go-colortext - colortext) [![godoc][D]](https://godoc.org/github.com/daviddengcn/go-colortext) (命令行 / 高级控制台用户界面)
- awesome-go - go-colortext - Go library for color output in terminals. (Command Line / Advanced Console UIs)
- awesome-go - go-colortext - Go library for color output in terminals. (Command Line / Advanced Console UIs)
- awesome-go - go-colortext - Go library for color output in terminals. (Command Line / Advanced Console UIs)
- awesome-go - go-colortext - 一个GO语言库用于终端的颜色输出库。 (<span id="命令行-command-line">命令行 Command Line</span> / <span id="高级控制台用户界面-advanced-console-uis">高级控制台用户界面 Advanced Console UIs</span>)
- awesome-go. - go-colortext - Go library for color output in terminals. (Command Line / Advanced Console UIs)
- awesome-go-with-stars - go-colortext - Go library for color output in terminals. (Command Line / Advanced Console UIs)
- awesome-Char - go-colortext - Go library for color output in terminals. (Command Line / Advanced Console UIs)
- awesome-go - go-colortext - Go library for color output in terminals. (Command Line / Advanced Console UIs)
- awesome-go - go-colortext - Go library for color output in terminals. (Command Line / Advanced Console UIs)
- awesome-go-cn - go-colortext
- repo-1316-awesome-go-cn - go-colortext - colortext) (命令行 / 高级控制台用户界面)
- repo-1211-awesome-go-cn - go-colortext - colortext) (命令行 / 高级控制台用户界面)
- awesome-reader - go-colortext - Go library for color output in terminals. (Command Line / Advanced Console UIs)
- Go-awesome - go-colortext - Go library for color output in terminals. (Command Line / Advanced Console UIs)
- awesome-go-cn - go-colortext - colortext) [![godoc][D]](https://godoc.org/github.com/daviddengcn/go-colortext) (命令行 / 高级控制台用户界面)
- awesome-go-handwritten - go-colortext - Go library for color output in terminals. (Command Line / Advanced Console UIs)
- awesome-go - go-colortext - Change the color of console text. - ★ 179 (Command Line)
- awesome-go - go-colortext - Go library for color output in terminals. (Command Line / Advanced Console UIs)
- awesome-go2 - go-colortext - Go library for color output in terminals. (Command Line / Advanced Console UIs)
- awesome-go - go-colortext - Go library for color output in terminals. (Command Line / Advanced Console UIs)
- awesome-go - go-colortext - Go library for color output in terminals. - :arrow_down:363 - :star:148 (Command Line / Advanced Console UIs)
- awesome-go - go-colortext - Go library for color output in terminals. (Command Line / Advanced Console UIs)
- awesome-go - go-colortext - Go library for color output in terminals. (Command Line / Advanced Console UIs)
- awesome-go-stars - go-colortext(stars: 214) - Go library for color output in terminals. (Command Line / Advanced Console UIs)
- awesome-go-zh - go-colortext - colortext) (命令行 / 高级控制台用户界面)
- awesome-go-cn - go-colortext
- go-awesome-cn-star - go-colortext
- awesome-go - go-colortext - Go library for color output in terminals. (Command Line / Advanced Console UIs)
- awesome-go - go-colortext - Go library for color output in terminals. (Command Line / Advanced Console UIs)
- awesome-go-cn - go-colortext
README
go-colortext package [![GoSearch](http://go-search.org/badge?id=github.com%2Fdaviddengcn%2Fgo-colortext)](http://go-search.org/view?id=github.com%2Fdaviddengcn%2Fgo-colortext)
====================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](http://go-search.org/view?id=github.com%2fdaviddengcn%2fgo-colortext))
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