xmtop/vendor/github.com/gizak/termui/attributes.go
2019-01-14 20:19:17 -08:00

32 lines
505 B
Go

package termui
// Attribute is printable cell's color and style.
type Attribute int
// Define basic terminal colors
const (
// ColorDefault clears the color
ColorDefault Attribute = iota - 1
ColorBlack
ColorRed
ColorGreen
ColorYellow
ColorBlue
ColorMagenta
ColorCyan
ColorWhite
)
// These can be bitwise ored to modify cells
const (
AttrBold Attribute = 1 << (iota + 9)
AttrUnderline
AttrReverse
)
// AttrPair holds a cell's Fg and Bg
type AttrPair struct {
Fg Attribute
Bg Attribute
}