Skip to content

Xterm256 is a Go package for printing colored string in a 256 colors terminal.

License

Notifications You must be signed in to change notification settings

gilliek/go-xterm256

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Xterm256 is a Go package for printing colored string in a 256 colors terminal.

Resources

License

Stars

Watchers

Forks

Packages

No packages published