# Packages
Styledown is a simple markup language for representing styled text.
# Functions
ApplyStyling returns a new Style with the given Styling's applied.
Bg returns a Styling that sets the background color.
Concat concatenates multiple Text's into one.
Fg returns a Styling that sets the foreground color.
K constructs a new Key.
MarkLines provides a way to construct a styled text by separating the content and the styling.
MarkText applies styles to all the runes in the line, using the runes in the style string.
ParseKey parses a symbolic key.
ParseSGREscapedText parses SGR-escaped text into a Text.
ParseStyling parses a text representation of Styling, which are kebab case counterparts to the names of the builtin Styling's.
StyleFromSGR builds a Style from an SGR sequence.
StyleRegions applies styling to the specified regions in s.
StyleSegment returns a new Segment with the given Styling's applied.
StyleText returns a new Text with the given Styling's applied.
StylingFromSGR builds a Style from an SGR sequence.
Stylings joins several transformers into one.
T constructs a new Text with the given content and the given Styling's applied.
TextFromSegment returns a [Text] with just seg if seg.Text is non-empty.
TrueColor returns a 24-bit true color.
XTerm256Color returns a color from the xterm 256-color palette.
# Constants
Alt is the alt modifier, traditionally known as the meta modifier.
Special negative runes to represent function keys, used in the Rune field of the Key struct.
Values for Mod.
DefaultBindingRune is a special value to represent a default binding.
Special negative runes to represent function keys, used in the Rune field of the Key struct.
Special negative runes to represent function keys, used in the Rune field of the Key struct.
Special negative runes to represent function keys, used in the Rune field of the Key struct.
Special negative runes to represent function keys, used in the Rune field of the Key struct.
Special negative runes to represent function keys, used in the Rune field of the Key struct.
Special negative runes to represent function keys, used in the Rune field of the Key struct.
Special negative runes to represent function keys, used in the Rune field of the Key struct.
Special negative runes to represent function keys, used in the Rune field of the Key struct.
Special negative runes to represent function keys, used in the Rune field of the Key struct.
Special negative runes to represent function keys, used in the Rune field of the Key struct.
Special negative runes to represent function keys, used in the Rune field of the Key struct.
Special negative runes to represent function keys, used in the Rune field of the Key struct.
Special negative runes to represent function keys, used in the Rune field of the Key struct.
Special negative runes to represent function keys, used in the Rune field of the Key struct.
Special negative runes to represent function keys, used in the Rune field of the Key struct.
Special negative runes to represent function keys, used in the Rune field of the Key struct.
Special negative runes to represent function keys, used in the Rune field of the Key struct.
Special negative runes to represent function keys, used in the Rune field of the Key struct.
Special negative runes to represent function keys, used in the Rune field of the Key struct.
Special negative runes to represent function keys, used in the Rune field of the Key struct.
Special negative runes to represent function keys, used in the Rune field of the Key struct.
Special negative runes to represent function keys, used in the Rune field of the Key struct.
Shift is the shift modifier.
Function key names that are aliases for their ASCII representation.
Special negative runes to represent function keys, used in the Rune field of the Key struct.
# Variables
Common stylings.
Common stylings.
Common stylings.
Common stylings.
Common stylings.
Common stylings.
Common stylings.
Common stylings.
Common stylings.
Common stylings.
Common stylings.
Common stylings.
Common stylings.
Common stylings.
Common stylings.
Common stylings.
Common stylings.
Builtin ANSI colors.
Common stylings.
Builtin ANSI colors.
Common stylings.
Builtin ANSI colors.
Builtin ANSI colors.
Builtin ANSI colors.
Builtin ANSI colors.
Builtin ANSI colors.
Builtin ANSI colors.
Builtin ANSI colors.
Builtin ANSI colors.
Builtin ANSI colors.
Default is used in the key binding table to indicate a default binding.
Common stylings.
Common stylings.
Common stylings.
Common stylings.
Common stylings.
Common stylings.
Common stylings.
Common stylings.
Common stylings.
Common stylings.
Common stylings.
Common stylings.
Common stylings.
Common stylings.
Common stylings.
Common stylings.
Common stylings.
Common stylings.
Builtin ANSI colors.
Common stylings.
Common stylings.
Builtin ANSI colors.
Common stylings.
Common stylings.
NoColor can be set to true to suppress foreground and background colors when writing text to the terminal.
Common stylings.
Common stylings.
Common stylings.
Common stylings.
Builtin ANSI colors.
Common stylings.
Common stylings.
Common stylings.
Common stylings.
Common stylings.
Common stylings.
Common stylings.
Common stylings.
Builtin ANSI colors.
Builtin ANSI colors.
# Structs
Key represents a single keyboard input, typically assembled from a escape sequence.
Segment is a string that has some style applied to it.
Style specifies how something (mostly a string) shall be displayed.
StylingRegion represents a region to apply styling.
TextBuilder can be used to efficiently build a [Text].
# Type aliases
Keys implements sort.Interface.
Mod represents a modifier key.
RuneStylesheet maps runes to stylings.
Text contains of a list of styled Segments.