xmtop/termui/colors.go
2018-02-19 02:00:21 -08:00

29 lines
458 B
Go

package termui
/* ---------------Port from termbox-go --------------------- */
// Attribute is printable cell's color and style.
type Attribute uint16
const (
ColorDefault Attribute = iota
ColorBlack
ColorRed
ColorGreen
ColorYellow
ColorBlue
ColorMagenta
ColorCyan
ColorWhite
)
const NumberofColors = 8
const (
AttrBold Attribute = 1 << (iota + 9)
AttrUnderline
AttrReverse
)
/* ----------------------- End ----------------------------- */