Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Basic ¶
type Basic BasicColor
type BasicColor ¶
type BasicColor int
const ( Black BasicColor = iota Red Green Yellow Blue Magenta Cyan White BrightBlack BrightRed BrightGreen BrightYellow BrightBlue BrightMagenta BrightCyan BrightWhite )
type Border ¶
type Border struct {
Chars BorderChars
Style BorderStyle
}
type BorderChars ¶
type BorderStyle ¶
func (BorderStyle) Base ¶
func (s BorderStyle) Base() Style
type Box ¶
type Box struct {
Width int
SizeMode SizeMode
MinWidth int
PaddingX int
PaddingY int
MarginX int
MarginY int
Style BoxStyle
Border Border
Segments []Segment
}
func NewAutoBox ¶
func NewAutoBox() *Box
func (*Box) AddSegment ¶
type BoxStyle ¶
type BoxStyle struct {
Background Color
Border BorderStyle
}
Click to show internal directories.
Click to hide internal directories.