Expand description
Apply colours and styling to strings.
Enums
Functions
Return a copy of
line
with styles applied to all the spans
specified.Find the largest byte offset in
s
that gives the longest
starting substring whose display width does not exceed width
.header 🔒
Style
s
as a warning and write to stderr.Return a copy of
src
with all the tab characters replaced by
tab_width
strings.Split
line
(from the source code) into multiple lines of
max_len
(i.e. word wrapping), and apply styles
to each part
according to its original position in line
.Split a string into parts whose display length does not
exceed
max_width
.Apply the
Style
s to the spans specified. Return a vec of the
styled strings, including trailing newlines.