ansi

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Feb 2, 2015 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Color

type Color int
const (
	Black Color = iota
	Red
	Green
	Yellow
	Blue
	Magenta
	Cyan
	White
	Colorless
)

type Colorer

type Colorer struct {
	// contains filtered or unexported fields
}

func NewFor

func NewFor(f *os.File) *Colorer

func (*Colorer) Fg

func (c *Colorer) Fg(s string, color Color, style Style) string

func (*Colorer) FgBg

func (c *Colorer) FgBg(s string, fgColor Color, fgStyle Style, bgColor Color, bgStyle Style) string

type Style

type Style byte
const (
	Normal    Style = 0x00
	Bold      Style = 0x01
	Blink     Style = 0x02
	Underline Style = 0x04
	Invert    Style = 0x08
	Intense   Style = 0x10
)

Jump to

Keyboard shortcuts

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