Help us shape the future of Go! Take the 2026 Go Developer Survey

go-xterm256

module
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 7, 2015 License: BSD-3-Clause

README

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

Directories

Path Synopsis
Package xterm256 aims to provide an API similar to fmt for printing colored string in a 256 colors terminal.
Package xterm256 aims to provide an API similar to fmt for printing colored string in a 256 colors terminal.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL