status.fill¶
status.fill(
spec,
) -> {
kind: "span",
text: string,
fg: number | string?,
bg: number | string?,
bold: boolean?,
italic: boolean?,
underline: boolean?,
dim: boolean?,
reverse: boolean?,
strikethrough: boolean?,
} | {
kind: "fill",
glyph: string?,
fg: number | string?,
bg: number | string?,
bold: boolean?,
italic: boolean?,
underline: boolean?,
dim: boolean?,
reverse: boolean?,
strikethrough: boolean?,
}
Build a fill element that absorbs the leftover width of the line when the line is laid out.
Accepts { glyph = "-", <style fields> }. glyph defaults to a space.
Returns a fill element for status.flat.
Parameters
spec:{glyph: string?, fg: number | string?, bg: number | string?, bold: boolean?, italic: boolean?, underline: boolean?, dim: boolean?, reverse: boolean?, strikethrough: boolean?}glyph— The glyph to repeat. Absent defaults to a space in the layout pass. An empty string is a parse error.fgbgbolditalicunderlinedimreversestrikethrough
Returns
{kind: "span", text: string, fg: number | string?, bg: number | string?, bold: boolean?, italic: boolean?, underline: boolean?, dim: boolean?, reverse: boolean?, strikethrough: boolean?} | {kind: "fill", glyph: string?, fg: number | string?, bg: number | string?, bold: boolean?, italic: boolean?, underline: boolean?, dim: boolean?, reverse: boolean?, strikethrough: boolean?}kindtext— The text of the run, unsanitized. Sanitization is deferred to the layout pass.fgbgbolditalicunderlinedimreversestrikethroughkindglyph— The glyph to repeat. Absent defaults to a space in the layout pass. An empty string is a parse error.fgbgbolditalicunderlinedimreversestrikethrough