#text #width-height #border #tui #right #left #height-width

anathema

Text User Interface library (TUI) with a template language and runtime

2 releases

0.1.1-alpha Aug 4, 2022
0.1.0 Aug 4, 2022

#250 in Template engine

28 downloads per month

MIT license

425KB
10K SLoC

Anathema

A TUI library with a custom template language and runtime

Getting started

hstack [width: 40, height: 10]:
    // Left pane
    expand [factor: 1]:
        border:
            vstack:
                text: "Item 1"
                text: "Item 2"
                text: "Item 3"

    // Right pane
    expand [factor: 4]:
        border:
            expand:
                text: "This isn't where I parked my car!"

output

┌──────┐┌──────────────────────────────┐
│Item 1││This isn't where I parked my  │
│Item 2││car!                          │
│Item 3││                              │
└──────┘│                              │
        │                              │
        │                              │
        │                              │
        │                              │
        └──────────────────────────────┘

Dependencies

~1–11MB
~91K SLoC