Documentation ¶
Index ¶
Constants ¶
View Source
const ( Inherit Color = iota NoColor Black Red Green Yellow Blue Magenta Cyan White BrightBlack BrightRed BrightGreen BrightYellow BrightBlue BrightMagenta BrightCyan BrightWhite Bold Attr = iota Underscore Blink ReverseVideo Concealed )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ColoredText ¶
func NewColoredText ¶
func NewColoredText(text string) *ColoredText
func (*ColoredText) Init ¶
func (c *ColoredText) Init() *ColoredText
func (*ColoredText) Reset ¶
func (c *ColoredText) Reset() *ColoredText
func (*ColoredText) SetAttr ¶
func (c *ColoredText) SetAttr(attr Attr, on bool) *ColoredText
func (*ColoredText) SetBG ¶
func (c *ColoredText) SetBG(color Color) *ColoredText
func (*ColoredText) SetFG ¶
func (c *ColoredText) SetFG(color Color) *ColoredText
func (*ColoredText) String ¶
func (c *ColoredText) String() string
Click to show internal directories.
Click to hide internal directories.