Documentation ¶
Index ¶
- type Anchor
- type Decorator
- type StatusBar
- func (b *StatusBar) Draw(rows uint16, cols uint16, writeFunc func(data []byte))
- func (b *StatusBar) GetAnchor() Anchor
- func (b *StatusBar) GetHeight() (rows uint16)
- func (b *StatusBar) IsVisible() bool
- func (b *StatusBar) SetBg(colour ansi.Colour)
- func (b *StatusBar) SetFg(colour ansi.Colour)
- func (b *StatusBar) SetFormat(format string)
- func (b *StatusBar) SetPadding(pad uint16)
- func (b *StatusBar) SetVisible(visible bool)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Anchor ¶
type Anchor uint8
Anchor describes the layout of a decorator - i.e. whether it should render at the top/bottom of the terminal
type Decorator ¶
type Decorator interface { Draw(rows uint16, cols uint16, output func(data []byte)) // Draw renders the decorator to StdOut GetAnchor() Anchor // GetAnchor returns the anchor e.g. Top/Bottom GetHeight() (rows uint16) // GetHeight returns the height of the decorator in terminal character rows IsVisible() bool }
Decorator is an entity which modifies the terminal output in a desirable way
type StatusBar ¶
type StatusBar struct {
// contains filtered or unexported fields
}
StatusBar is a full width bar containing useful info which can be added to the terminal using a proxy
func (*StatusBar) GetHeight ¶
GetHeight returns the height of the decorator in terminal character rows
func (*StatusBar) SetPadding ¶
SetPadding sets a vertical padding on the status bar
func (*StatusBar) SetVisible ¶ added in v0.0.18
Click to show internal directories.
Click to hide internal directories.