package
0.20.0
Repository: https://github.com/mum4k/termdash.git
Documentation: pkg.go.dev

# Packages

Binary segmentdisplaydemo shows the functionality of a segment display.

# Functions

AlignHorizontal sets the horizontal alignment for the individual display segments.
AlignVertical sets the vertical alignment for the individual display segments.
GapPercent sets the size of the horizontal gap between individual segments (characters) expressed as a percentage of the segment height.
MaximizeDisplayedText tells the widget to maximize the amount of characters that are displayed.
MaximizeSegmentHeight tells the widget to maximize the height of the individual display segments.
New returns a new SegmentDisplay.
NewChunk creates a new text chunk.
WriteCellOpts sets options on the cells that contain the text.
WriteErrOnUnsupported instructs Write to return an error when the text contains a character the display doesn't support.
WriteSanitize instructs Write to sanitize the text, replacing all characters the display doesn't support with a space ' ' character.

# Constants

DefaultGapPercent is the default value for the GapPercent option.

# Structs

SegmentDisplay displays ASCII content by simulating a segment display.
TextChunk is a part of or the full text that will be displayed.

# Interfaces

Option is used to provide options.
WriteOption is used to provide options to Write().