This repository has been archived on 2022-11-30. You can view files and clone it, but cannot push or open issues or pull requests.
spectator/exhibit/attributes.go

45 lines
531 B
Go

package exhibit
const (
Normal = iota
Bold
_
_
Underline
SlowBlink
)
const (
FGBlack = ForegroundColor(iota + 30)
FGRed
FGGreen
FGYellow
FGBlue
FGMagenta
FGCyan
FGWhite
)
const (
BGBlack = BackgroundColor(iota + 40)
BGRed
BGGreen
BGYellow
BGBlue
BGMagenta
BGCyan
BGWhite
)
type Attributes struct {
ForegroundColor ForegroundColor
BackgroundColor BackgroundColor
Bold bool
Italics bool
Blink bool
Underline bool
}
type ForegroundColor int
type BackgroundColor int