Versions in this module Expand all Collapse all v0 v0.1.0 Dec 25, 2022 Changes in this version + var SpinnerDefaultStyle = []string + func NewProgressLine(table *TableGenerator, initialLabel string) (*ProgressLine, Segment) + type AutoRefreshScreen struct + func NewAutoRefreshScreen(options RenderingOptions, bars ...Segment) *AutoRefreshScreen + func (s *AutoRefreshScreen) Stop() + type LineSpinnerSegment struct + func NewSpinnerSegment() *LineSpinnerSegment + func (l *LineSpinnerSegment) Content(options RenderingOptions) string + type PagePrint struct + Content []Segment + Footer []Segment + type ProgressBarSegment struct + func (p *ProgressBarSegment) Content(options RenderingOptions) string + type ProgressLine struct + SetBar func(int, int) + SetExplanation func(string) + SetLabel func(string) + SwapSpinner func(int) + type RenderingOptions struct + Full bool + Width int + type Segment interface + Content func(options RenderingOptions) string + func NewConstantSegment(content string) Segment + func NewGreenTickSegment() Segment + func NewProgressBarSegment() (Segment, func(int, int)) + func NewSwitchSegment(delegates ...Segment) (Segment, func(int)) + func NewUpdatableSegment(content string) (Segment, func(string)) + type SimpleScreen struct + func NewSimpleScreen(options RenderingOptions, bars ...Segment) *SimpleScreen + func (s *SimpleScreen) Clear() + func (s *SimpleScreen) ContentHeight() int + func (s *SimpleScreen) ForceClear() + func (s *SimpleScreen) Print(page PagePrint) + func (s *SimpleScreen) Refresh() + func (s *SimpleScreen) TermSize() (int, int) + type StringSegment struct + func (l *StringSegment) Content(options RenderingOptions) string + type SwitchSegment struct + func (s *SwitchSegment) Content(options RenderingOptions) string + type TableGenerator struct + func NewTable(separator string, widths ...int) *TableGenerator + func (t *TableGenerator) NewRow(delegates ...Segment) Segment