style

package
v0.0.2-rc Latest Latest
Warning

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

Go to latest
Published: Sep 9, 2016 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (

	// Attributes
	NoAttribute Code = 0
	Bold             = 1
	Dim              = 2
	Italic           = 3
	Underline        = 4
	Blink            = 5
	FastBlink        = 6
	Invert           = 7
	Hidden           = 8

	// Foreground Colours
	Black        = 30
	Red          = 31
	Green        = 32
	Yellow       = 33
	Blue         = 34
	Magenta      = 35
	Cyan         = 36
	White        = 37
	DefaultColor = 39

	// Background Colours
	BGBlack        = 40
	BGRed          = 41
	BGGreen        = 42
	BGYellow       = 43
	BGBlue         = 44
	BGMagenta      = 45
	BGCyan         = 46
	BGWhite        = 47
	DefaultBGColor = 49
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Code

type Code int

type Style

type Style []Code

func DefaultStyle

func DefaultStyle() Style

func (*Style) Add

func (s *Style) Add(codes ...Code)

func (Style) Contains

func (s Style) Contains(c Code) bool

func (*Style) Remove

func (s *Style) Remove(codes ...Code)

func (Style) String

func (s Style) String() string

func (Style) Subtract

func (s Style) Subtract(other Style) Style

Jump to

Keyboard shortcuts

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