Deterministic ANSI-aware terminal table rendering.
render only returns a string. renderToTerminalWidth is the sole API that queries terminal dimensions, and print is only a convenience.
Procs
proc renderToTerminalWidth(table: Table; fallbackWidth = 80): string {. ...raises: [ValueError], tags: [ReadEnvEffect], forbids: [].}
- Queries the current terminal width at call time and responsively renders. fallbackWidth is used when the terminal cannot report a positive size.
Exports
-
addRow, roundedTheme, setFooter, cell, initTableMargin, addRow, initTable, OverflowMode, initCellPadding, row, setSpan, cell, initTable, setAlignment, setTitle, psqlTheme, contentWidth, setVerticalAlignment, clearFooter, markdownTheme, TableTheme, headerCell, Column, Table, columnCount, PanelPosition, CellPadding, maximumWidth, addPanel, Panel, panel, setVerticalAlignment, fixedWidth, setHeader, setPadding, Cell, VerticalAlignment, column, WidthKind, clearTitle, percentageWidth, customTheme, row, initRow, initColumn, setWidthPriority, Shadow, initCell, initShadow, setVerticalAlignment, footerCell, setAlignment, modernTheme, WidthConstraint, Row, minimumWidth, setAlignment, setPadding, TableMargin, column, borderlessTheme, setPadding, asciiTheme, clearHeader, BorderSet, clearSpan