TermKit
TermKit is a flexbox-inspired terminal UI library for building interactive command-line applications.
Examples
Example 1
<hbox width="30" height="15" border="1">
<text width="8" height="6" border="1">
Hello
</text>
</hbox>
Example 2
<hbox width="30" height="15" border="1">
<text width="8" height="6" border="1">
Hello
</text>
<text width="8" height="6" border="1">
World
</text>
</hbox>
Example 3
<hbox width="30" height="15" border="1">
<text sizing="grow,fit" border="1">
Hello
</text>
<text sizing="fit,grow" border="1">
World
</text>
</hbox>
Source
The source for TermKit is available on GitHub.