anathema-extras 0.1.0

Additional components for Anathema
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
container [min_width: 1, height: 1]
    zstack
        // Text
        padding [right: 0]
            overflow [axis: "horz"]
                if state.text
                    text state.text
                else
                    $children

        // Cursor
        position [left: state.screen_cursor]
            container [
                background: attributes.cursor_color_bg ? "green", 
                foreground: attributes.cursor_color_fg ? "black", 
                width: 1, 
                height: 1,
            ]