Crate zng_wgt_ansi_text

Source
Expand description

ANSI text widget, properties and nodes.

§Crate

This crate is part of the zng project.

Structs§

AnsiStyle
Represents the ANSI style of a text run.
AnsiText
W Render text styled using ANSI escape sequences.
AnsiTextParser
Iterator that parses ANSI escape codes.
AnsiTxt
Represents a segment of ANSI styled text that shares the same style.
LineFnArgs
Arguments for a widget function for a text line.
PageFnArgs
Arguments for a widget function for a stack of lines.
PanelFnArgs
Arguments for a widget function for a stack of pages.
TextFnArgs
Arguments for a widget function for an ANSI styled text fragment.

Enums§

AnsiColor
Named ANSI color.
AnsiWeight
Font weight defined by ANSI escape codes.

Statics§

BLINK_INTERVAL_VAR
Duration the ANSI blink animation keeps the text visible for.
LINES_PER_PAGE_VAR
Maximum number of lines per PAGE_FN_VAR.
LINE_FN_VAR
Widget function for LineFnArgs.
PAGE_FN_VAR
Widget function for PageFnArgs.
PANEL_FN_VAR
Widget function for PanelFnArgs.
TEXT_FN_VAR
Widget function for TextFnArgs.

Functions§

ansi_node
Implements the ANSI parsing and view generation, configured by contextual properties.
blink_interval
P ANSI blink animation interval.
default_line_fn
Default LINE_FN_VAR.
default_page_fn
Default PAGE_FN_VAR.
default_panel_fn
Default PANEL_FN_VAR.
default_text_fn
Default TEXT_FN_VAR.
line_fn
P Widget function that converts LineFnArgs to widgets.
lines_per_page
P Maximum number of lines per page view.
page_fn
P Widget function that converts PageFnArgs to widgets.
panel_fn
P Widget function that converts PanelFnArgs to widgets.
text_fn
P Widget function that converts TextFnArgs to widgets.