Skip to content

Latest commit

 

History

History
42 lines (27 loc) · 1005 Bytes

README.md

File metadata and controls

42 lines (27 loc) · 1005 Bytes

Xterm256

Build Status GoDoc

Xterm256 aims to be a Go package for printing colored string in a 256 colors terminal.

Installation

go get github.com/gilliek/go-xterm256/xterm256

Usage

// Use a predefined color
xterm256.Println(xterm256.Red, "Foo")

// Define a new color
orange, _ := xterm256.NewColor(3, 1, 0)
xterm256.Println(orange, "Bar")

// Add a background color
orange.SetBackground(5, 5, 5)
xterm256.Println(orange, "Bar")

Documentation

Documentation can be found on either GoDoc or GoWalker.

Contribute

You're very welcome to submit pull requests or report bugs :)

License

BSD 3-clauses