Layout (Split, Grid) Example

widget_layout_split

Demonstrates dynamic geometry management with constraints and flex modes.

Terminal screens vary in size. Hardcoded layouts break. Layout.split manages space dynamically, ensuring your interface adapts to any window dimension.

Features Demonstrated

Hotkeys

Usage

ruby examples/widget_layout_split/app.rb

Learning Outcomes

Use this example if you need to…

Read the source code β†’