D.A.B.Tv0.0.17 Tutorial API DABT Tools ↗ GitHub ↗

tui.fixed

tui.fixed PARENT CELL_W CELL_H CHILD[:SPAN[:nl]]...

Lays children out as fixed-size cells that flow left to right and wrap, like keys on a keyboard.

Parameters

  • CELL_W, CELL_H: size of one cell in columns and rows.
  • CHILD: pane name. SPAN makes it that many cells wide (default 1). A third field (any text, e.g. nl) starts a new row before this child.

Notes

  • Sizes never stretch with the window. Children that don’t fit get a 0×0 rectangle and are not drawn.
  • Children start with no border.
  • tui.get.split on PARENT prints f.

Example

tui.fixed keys 6 3 esc f1 f2 f3 tab:2:nl q w e

See also: tui.grid