tml
The TML language as a Go library. Parse, print and validate documents for terminal surfaces, evaluate their bindings, run local actions and apply JSON Patch to their state.
tuios.dev/tml is the TML language. A TML document is a tree of components from a fixed catalog, with a JSON state store. A program, a plugin or an agent sends one to a host, and the host draws it in a pane, a popup or a dock cell. This library is the language. It draws nothing. loom draws it.
The library uses only the standard library. The API reference is on pkg.go.dev.
Quickstart
go get tuios.dev/tml tuios.dev/loomThis program checks a document, draws it, changes its state with a JSON Patch and draws it again:
package main
import (
"fmt"
"log"
"tuios.dev/loom"
"tuios.dev/tml"
)
const src = `<tml version="1" title="Build">
<state>{"pct": 40, "step": "Compiling"}</state>
<card title="Build">
<text>Step: <b>{state.step}</b></text>
<progress value="{state.pct / 100}"/>
</card>
</tml>`
func main() {
// Check parses and validates the document.
doc, problems, err := tml.Check([]byte(src), nil)
if err != nil {
log.Fatal(problems)
}
// tml draws nothing. loom draws the document into cells.
s, err := loom.New(doc, nil)
if err != nil {
log.Fatal(err)
}
fmt.Println(s.Render(40, 3).Render())
// The owner changes the state with a JSON Patch.
ops, err := tml.DecodePatch([]byte(`[
{"op": "replace", "path": "/pct", "value": 80},
{"op": "replace", "path": "/step", "value": "Linking"}]`), nil)
if err != nil {
log.Fatal(err)
}
if err := s.Patch(ops); err != nil {
log.Fatal(err)
}
fmt.Println(s.Render(40, 3).Render())
}How it works
A document has two parts: a tree of components and a JSON state. Attributes read the state through bindings, such as {state.pct / 100}. The owner of a surface changes the state with JSON Patch, and the host draws again only what reads the changed paths.
┌─────────────────────────────┐ │ Owner: a program, a plugin │ │ or an agent │ └─────────────────────────────┘ │ ▲ │ │ document, then patches emit and close events ▼ │ ┌──────────────────────────────┐ │ Host: tuios, or your program │ │ with loom │ └──────────────────────────────┘ │ ▲ │ │ draws with the theme keys and clicks ▼ │ ┌──────────┐ │ Person │ └──────────┘
46 columns, 19 rows, drawn for 80 columns.
flowchart LR
owner["Owner: a program, a plugin or an agent"] -- "document, then patches" --> host["Host: tuios, or your program with loom"]
host -- "draws with the theme" --> person["Person"]
person -- "keys and clicks" --> host
host -- "emit and close events" --> owner- Two encodings. TML text is a strict XML subset for files and people. TML JSON is for the wire and for agents. Both parsers give the same canonical tree, and a canonical tree prints and reads back unchanged in either encoding.
- Roles, never colours. A colour is a theme role, such as
successormute. A hex colour is an error, so every surface follows the theme of the host. - No code runs. Expressions compute values. They cannot loop, assign or call out, and each frame has a step budget.
- Local actions. Tabs, sorting, the cursor,
setandtogglerun in the host at once.emitandclosego back to the owner as events.
The same document in TML text and in TML JSON:
<tml version="1" title="Build">
<state>{"pct": 40, "step": "Compiling"}</state>
<card title="Build">
<text>Step: <b>{state.step}</b></text>
<progress value="{state.pct / 100}"/>
</card>
</tml>{"type": "tml", "version": 1, "title": "Build", "state": {"pct": 40, "step": "Compiling"},
"children": [{"type": "card", "title": "Build", "children": [
{"type": "text", "children": ["Step: ", {"type": "b", "children": ["{state.step}"]}]},
{"type": "progress", "value": "{state.pct / 100}"}]}]}The root is tml, or one block component for a small surface, such as a dock cell. The examples below use both forms.
Components
Each picture is the TML above it, drawn by loom in the site's theme.
Layout
row lays its children out left to right, and col top to bottom. gap puts empty cells between children. justify and align place them. A spacer takes the free space.
<col gap="1">
<row gap="2"><badge>one</badge><badge>two</badge><badge>three</badge></row>
<row><text>left</text><spacer/><text role="mute">a spacer pushes this to the right</text></row>
<row justify="center" gap="2"><badge role="info">justify="center"</badge></row>
<row justify="between"><badge>a</badge><badge>b</badge><badge>c</badge></row>
</col><row gap="4">
<col gap="1" w="fill">
<text role="mute">col gap="1"</text>
<badge w="fill">first</badge>
<badge w="fill">second</badge>
<badge w="fill">third</badge>
</col>
<col align="end" w="fill">
<text role="mute">col align="end"</text>
<badge role="info">short</badge>
<badge role="info">a longer one</badge>
<badge role="info">mid</badge>
</col>
</row>w and h take cells, a percentage, fill or fill:N. A fill box shares the free space with the other fill boxes, by its weight N. min-w, max-w, min-h and max-h bound a size. pad takes one, two or four cell counts.
<col gap="1">
<row gap="1">
<stat label="w=14" value="fixed" w="14" h="3"/>
<stat label="w=fill" value="one share" w="fill" h="3" role="info"/>
<stat label="w=fill:2" value="two shares" w="fill:2" h="3" role="success"/>
</row>
<row gap="1">
<stat label="w=25%" value="a quarter" w="25%" h="3"/>
<stat label="max-w=18" value="capped" w="fill" max-w="18" h="3" role="info"/>
<stat label="w=fill" value="the rest" w="fill" h="3" role="success"/>
</row>
</col>grid wraps its children into equal columns:
<grid cols="3" gap="1">
<stat label="session" value="6.2s" role="info"/>
<stat label="app" value="4.8s" role="info"/>
<stat label="vt" value="3.1s" role="info"/>
<stat label="tape" value="1.4s"/>
<stat label="config" value="0.9s"/>
<stat label="terminal" value="0.8s"/>
</grid>stack layers its children, scroll scrolls them, and split holds two children with a divider that a person can drag.
Text
text holds inline components: b, i, u, s, code, c (a colour role), kbd and a (a link). heading has three levels.
<col gap="1">
<heading level="1">Release v0.11</heading>
<heading level="2">What changed</heading>
<text wrap="word">Text holds <b>bold</b>, <i>italic</i>, <u>underline</u>, <s>strike</s>,
<code>inline code</code>, <c role="success">a role colour</c>, a key such as
<kbd>ctrl+b</kbd> and <a href="https://tuios.dev">a link</a>.</text>
<text role="mute" align="right">role="mute" align="right"</text>
</col>Stat, gauge and progress
A stat is a labelled number. With a height of 3 it is a tile. A gauge shows a value against a maximum. A progress bar takes a value from 0 to 1.
<col gap="1">
<row gap="3">
<stat label="passed" value="412" delta="+12" role="success"/>
<stat label="failed" value="3" delta="-2" role="error"/>
<stat label="wall time" value="18.4s"/>
</row>
<row gap="2">
<stat label="passed" value="412" delta="+12" role="success" w="18" h="3"/>
<stat label="failed" value="3" delta="-2" role="error" w="18" h="3"/>
<stat label="wall time" value="18.4s" w="18" h="3"/>
</row>
</col><col>
<gauge value="43" max="100" label="CPU"/>
<gauge value="98.8" max="100" role="success"/>
<progress value="0.4"/>
<progress value="0.75" label="3 of 4" role="success"/>
</col>Badge and status
A badge is a short coloured tag. status shows the tuios agent state glyph and word. spinner is a busy mark.
<col gap="1">
<row gap="1">
<badge>v0.11</badge><badge role="success">passing</badge><badge role="warning">3 risky</badge>
<badge role="error">2 failed</badge><badge role="info">draft</badge>
</row>
<row gap="3">
<status state="working"/><status state="needs_input"/><status state="done"/>
<status state="errored"/><status state="idle"/>
</row>
<row gap="1"><spinner label="Compiling"/></row>
</col>Table
A table shows the rows of a state array. Each column names a field. format is an expression for the cell, with value and row. sort gives the first order, and select="single" gives a cursor.
<tml version="1">
<state>{"rows": [
{"pkg": "internal/session", "test": "TestAttachRace", "ms": 2210},
{"pkg": "internal/session", "test": "TestAttachReplay", "ms": 1950},
{"pkg": "internal/app", "test": "TestDockClick", "ms": 840},
{"pkg": "internal/app", "test": "TestDockCustomWidth", "ms": 610},
{"pkg": "vt", "test": "TestKittyPlaceholder", "ms": 120}]}</state>
<table rows="state.rows" key="test" sort="ms:desc" select="single">
<column field="pkg" title="Package" w="fill"/>
<column field="test" title="Test" w="fill:2"/>
<column field="ms" title="Time" align="right" format="dur(value, 'ms')" sort="true"/>
</table>
</tml>List, tree and kv
A list repeats its children once per element of a state array. A tree shows nested state objects. A kv shows key and value pairs in two aligned columns. A long value wraps onto more rows under its value column.
<tml version="1">
<state>{"agents": [
{"name": "claude", "task": "Add tests for the store", "state": "working"},
{"name": "codex", "task": "Add a delete endpoint", "state": "needs_input"},
{"name": "gemini", "task": "Use the system font", "state": "done"}]}</state>
<list items="state.agents" as="a" select="single">
<row gap="2"><text w="8">{a.name}</text><text w="fill" role="dim">{a.task}</text><status state="{a.state}"/></row>
</list>
</tml><tml version="1">
<state>{"files": [
{"name": "cmd", "kids": [{"name": "tuios", "kids": [{"name": "main.go"}, {"name": "tml_command.go"}]}]},
{"name": "loom", "kids": [{"name": "layout.go"}, {"name": "surface.go"}]},
{"name": "go.mod"}]}</state>
<tree items="state.files" label="name" children="kids" open="2"/>
</tml>Card and tabs
A card is a titled block that a person can fold. tabs shows one tab at a time. A tab title can hold a binding.
<col gap="1">
<card title="Failures" meta="3" role="error">
<text>Three tests failed.</text>
<text role="dim">Press r to run them again.</text>
</card>
<card title="Passed" meta="412" role="success" fold="true">
<text>Hidden while the card is folded.</text>
</card>
</col><tml version="1">
<state>{"failed": 3}</state>
<tabs>
<tab id="sum" title="Summary"><text>412 passed, 3 failed, 9 skipped.</text></tab>
<tab id="fail" title="Failures {state.failed}"><text>Three failed.</text></tab>
<tab id="log" title="Log"><code>ok tuios.dev/vt 12.1s</code></tab>
</tabs>
</tml>modal is a box that holds the focus while it is open. toast is a short notice that goes away.
Charts
bar, line, area, sparkline, histogram, heatmap and pie read a state array. x, y and v name the fields. plot draws them.
<tml version="1">
<state>{"pkgs": [{"pkg": "session", "s": 6.2}, {"pkg": "app", "s": 4.8}, {"pkg": "vt", "s": 3.1}, {"pkg": "tape", "s": 1.4}],
"runs": [{"run": 1, "s": 21}, {"run": 2, "s": 23}, {"run": 3, "s": 20}, {"run": 4, "s": 26}, {"run": 5, "s": 24},
{"run": 6, "s": 19}, {"run": 7, "s": 22}, {"run": 8, "s": 27}, {"run": 9, "s": 25}, {"run": 10, "s": 21}],
"wall": [41, 39, 44, 40, 52, 47, 38, 45, 49, 43, 41, 50],
"lang": [{"lang": "Go", "lines": 900}, {"lang": "Shell", "lines": 240}, {"lang": "TOML", "lines": 120}]}</state>
<grid cols="2" gap="2">
<bar data="state.pkgs" x="pkg" y="s" dir="h" title="Seconds by package" h="5"/>
<line data="state.runs" x="run" y="s" title="Suite time" h="5"/>
<sparkline values="state.wall" title="Wall time"/>
<pie data="state.lang" label="lang" v="lines" style="donut" h="5"/>
</grid>
</tml>Mermaid
mermaid holds a Mermaid diagram. loom draws it as text with sketch, fitted to the width of the element, in the theme's colours. A diagram taller than its box scrolls with the wheel. A diagram that sketch cannot draw shows its source under a note that says why.
tuios draws eight diagram types itself. In tuios, a panel draws the other types through the sketch plugin Unreleased. Run tuios plugins install sketch to get it. Without the plugin, the panel shows the source, and a notice says what to run.
<tml version="1">
<mermaid>
flowchart LR
P[Prompt] --> A[Agent works]
A --> R[Review]
R --> S[Ship]
</mermaid>
</tml>tuios tml render draws it like this:
┌─────────┐ ┌─────────────┐ ┌─────────┐ ┌──────┐
│ Prompt │─────►│ Agent works │─────►│ Review │────►│ Ship │
└─────────┘ └─────────────┘ └─────────┘ └──────┘The text of a mermaid element is kept as written. Bindings do not apply in it.
Forms
form, input, textarea, select, checkbox, toggle and slider collect values, and button with submit sends them. loom shows each field with its label and value. Editing comes in a later release.
Motion Unreleased
A node can play an effect when it shows and when it goes away. A container can start the effects of its children one after the other.
<tml version="1" title="Jobs">
<state>{"loading": true, "jobs": [{"name": "build"}, {"name": "test"}], "saved": "Saved", "cpu": "12%"}</state>
<col pad="1" gap="1" stagger="60ms">
<card each="state.jobs" key="{item.name}" title="{item.name}" enter="slide-up" exit="fade">
<text>Running</text>
</card>
<card title="Host" skeleton="{state.loading}" h="4">
<text>CPU {state.cpu}</text>
</card>
<toast role="success" ttl="4s">{state.saved}</toast>
</col>
</tml>| Attribute | What it does |
|---|---|
enter | Plays when the node shows: fade, slide-up, slide-down, slide-left, slide-right, iris or decode. A surface that opens plays the enter of each node in it |
exit | Plays when the node goes away: its if turns false, its item leaves an each, or a modal closes. A node that goes away with its parent, such as the content of a closed tab, plays no exit |
stagger | On a container. Starts the enter of each child this much time after the child before it |
skeleton | Draws placeholder bars in the space of the node while it is true. The content fades in when it turns false. Give the node an h, so that its space stays the same |
ttl | On a toast. The toast goes away at the end of this time. A new text shows it again |
Every component takes enter, exit, skeleton and stagger. With appearance.motion = "none" or calm mode, nodes show at once, and a toast still goes away at the end of its ttl. tuios tml render draws the last frame.
State and bindings
A value in braces is a binding: one expression that reads the state. The language is small and total. Every expression gives a value, and a mismatch gives null.
<tml version="1">
<state>{"ok": 412, "failed": 3, "wall_ms": 18412, "rss": 36700160, "branch": "fix/token-refresh"}</state>
<kv>
<item k="Branch" v="{upper(state.branch)}"/>
<item k="Pass rate" v="{round(pct(state.ok, state.ok + state.failed), 1)}%"/>
<item k="Wall time" v="{dur(state.wall_ms)}"/>
<item k="Memory" v="{bytes(state.rss)}"/>
<item k="Result" v="{state.failed > 0 ? state.failed + ' failed' : 'all passed'}"/>
<item k="Missing" v="{state.nothing ?? 'no value'}"/>
</kv>
</tml>- Paths:
state.a.b,state.items[0],item.xinsideeach,form.taginside a form,event.valueinside an action, andview.width. - Operators:
+ - * / %, comparisons,&& || !,a ? b : c, and??for a null value. - Functions:
len,sum,avg,min,max,round,abs,pct,fmt,dur,bytes,ago,upper,lower,trim,join,contains,starts,pickandcount. each="state.items" as="item"repeats a node.ifdrops a node when false.showhides it and keeps its space.
Each surface has a budget of 10,000 steps per frame. Past the budget, a binding shows !. Each expression records the state paths it reads, so a renderer draws again only what a patch touches.
Update with JSON Patch
The owner changes the state with an RFC 6902 JSON Patch. A patch is atomic: it applies in full, or not at all. The size limit is checked after every operation.
[
{ "op": "replace", "path": "/pct", "value": 80 },
{ "op": "replace", "path": "/step", "value": "Linking" },
{ "op": "add", "path": "/log/-", "value": "go test ./..." }
]<tml version="1" title="Build">
<state>{"pct": 40, "step": "Compiling", "log": ["go vet ./...", "go build ./cmd/tuios"]}</state>
<col gap="1">
<row gap="2"><text>Step: <b>{state.step}</b></text><spacer/><badge role="info">{len(state.log)} steps</badge></row>
<progress value="{state.pct / 100}"/>
<col><text each="state.log" as="line" role="dim">$ {line}</text></col>
</col>
</tml>In Go:
store, err := tml.StoreFor(doc, nil) // nil means the default limits
if err != nil {
return err
}
ops, err := tml.DecodePatch(patch, nil)
if err != nil {
return err
}
changed, err := store.Apply(ops) // the JSON Pointers that changed, such as [/pct /step /log]A patch with a test operation that no longer matches is refused. Read the state again, then send a new patch.
Events and actions
An action attribute, such as on-press, holds one or more calls separated by ;. A button's key works from anywhere on the surface.
<tml version="1" title="Deploy">
<state>{"tag": "v0.11.0", "risky": 2}</state>
<col gap="1">
<text>Deploy <b>{state.tag}</b>? <c role="warning">{state.risky} risky changes</c></text>
<row gap="2">
<button key="y" kind="primary" on-press="close('yes')">Deploy</button>
<button key="n" on-press="close('no')">Cancel</button>
<button key="d" on-press="emit('diff', state.tag)">Show diff</button>
</row>
</col>
</tml>loom runs the local actions. The others come back to the program. Pressing d and then y on this surface returns:
key d: emit "diff" v0.11.0
key y: close "" yes| Action | Runs | Effect |
|---|---|---|
set('path', expr), toggle('path') | Locally | Change the state. |
tab('id'), sort('field'), filter('id', expr), fold('id'), focus('id') | Locally | Change the view. |
emit('name', expr) | Owner | Send an event. |
close(expr) | Owner | Close the surface with a value. |
copy(expr) | Host | Put text on the clipboard. |
open('file:path') | Host | Open a file under the owner's files folder. |
pane('verb', ...) | Host | Run focus, new-window or send-text under the owner's grants. |
Errors that name the fix
tml.Check reports up to 20 problems in one pass. Each problem has a line and a column, a JSON Pointer to the node, a code, and the closest legal value.
<tml version="1">
<state>{"rows": []}</state>
<col>
<chart-bar data="state.rows"/>
<text role="#ff0000">Build failed</text>
<table rows="state.rows" sortBy="ms"><column field="ms"/></table>
</col>
</tml>4:5: <chart-bar> is not a TML component. (unknown_component at /children/0/children/0) Did you mean "bar"?
5:11: role takes a theme role, never a colour value such as "#ff0000". tuios picks the colour from the theme. (hex_color at /children/0/children/1/role)
6:30: table has no attribute 'sortBy'. (unknown_attribute at /children/0/children/2/sortBy) Did you mean "sort"?*tml.Error marshals to the error object a host sends back, so an agent can read each fix.
Limits and safety
A document comes from a program, a plugin or an agent, so the library treats it as untrusted.
- No code from a document runs. Expressions cannot loop, assign or call out, and each frame has a step budget.
- The store removes control, bidi and invisible characters from every string and key it takes in: the document's state, patch values and
Set. Evaluated bindings are cleaned too. - A hex colour is an error. A link opens only after the person confirms it.
StoreForkeeps the tree, and refuses a patch that growseach,list, the images or the rows past their limits.
| Limit | Value |
|---|---|
| Document | 256 KiB, 1 MiB from the person's own command line |
| Nodes | 5,000 |
| Depth | 32 |
| State | 1 MiB |
Nodes that each and list expand to | 2,000 |
Rows and data points, after each expands | 50,000 |
| Patch | 64 KiB, 100 a second per surface |
| Images | 4 per document, 4 MiB each |
For a host: give Env.Budget one tml.NewBudget() for all the bindings of a frame. A nil budget gets a fresh one for each call, which bounds one binding but not a frame.
Show a document without tuios
The tml command shows a document full screen in any terminal, or prints it once as text. It is part of loom:
go install tuios.dev/loom/cmd/tml@latest
tml report.tmlThe tml command on the loom page has the release archives and the flags.
Show a document in tuios
tuios tml is in tuios v0.11.0 and later.
tuios tml show FILE shows a document as a popup or as a pane. tuios draws it with loom in your theme, and keys and the mouse work in it. The daemon keeps the surface, so it stays when you detach.
tuios tml validate test-run.tml # check it first: each problem names the fix
tuios tml render test-run.tml # see it drawn as text; opens nothing
tuios tml show test-run.tml --pane # a tiled pane; it prints the surface id
The title bar shows the document's title, then who opened the surface: "from" and the name of that pane, or its id when it has no name. The document cannot change the owner. A surface does not take the focus: click it to use it.
A text field takes typed text and a paste, in a popup, in a pane and in the agents view. Tab or a click goes into a field, and Esc leaves it. Enter submits the form. While a field has the focus, a button's key, such as y, types the letter. A paste with no field to take it tells you to select a field first.
Read a surface as text Added in v0.11.1
An agent cannot see your screen. It reads a surface as text before and after it shows it.
tuios tml render dash.tml # drawn at the terminal's width, or 100
tuios tml render dash.tml --width 80 --height 24 --tab log
tuios tml render dash.tml --state '{"runs":12}'
tuios capture-pane -s "$TUIOS_SESSION" -w WINDOW # an open surface, as drawntml renderdraws the document as tuios draws it in a pane, and opens nothing. It needs no daemon.- The width is the terminal's width, or 100 when standard output is not a terminal. Without
--height, the document gets the rows it needs. --statereplaces the state.--tabopens a tab by its id.--ansikeeps the colours as ANSI escape sequences.- When the document is not valid,
tml renderprints the problems and exits with status 1. capture-paneon the window of a surface prints the surface as drawn, at the window's size. It uses the surface's state and the view that a client last reported: the open tab, the cursor rows and the scroll place.--jsonaddssurfaceto the result.
Ask a question and wait for the answer
With --wait, the command stays open until the surface closes, and prints the value the document closed with.
answer=$(tuios tml show deploy.tml --wait) # "yes", "no", or null
--wait exits with 0 for the person's answer, 1 when the person closed the popup with no value, and 2 when a program closed it with tuios tml close.
Dock a popup as a pane
You choose where a document sits. Ctrl+B t f docks the focused popup as a tiled pane, and floats a TML pane as a popup again. The dock control on the popup's top border and the float control on the pane's title bar do the same. The palette's "Toggle floating" works too.

The surface keeps its state and what you typed. The command that waits with --wait keeps waiting. A patch or a new document from the owner does not move the surface back.
Each document that an agent's pane shows is also on the agent's Artifacts tab in the agents view. There you answer a form without leaving the view. See Artifacts.
Own a live surface
With --events, the command prints one JSON line for each emit and for the close. A script reads the lines and answers with a patch or a new document.
tuios tml show dash.tml --pane --events # prints tml_opened, then one line per event
tuios tml patch SURFACE '[{"op":"replace","path":"/passed","value":413}]'
tuios tml replace SURFACE next.tml --keep-state
tuios tml get SURFACE
tuios tml list
tuios tml close SURFACE '"done"'From a pane, these commands need the write grant. Only the pane that opened a surface can patch, replace or close it. A pane() action runs with the grants of the pane that opened the surface, and tuios asks the person before a surface first types into a pane. The CLI reference lists every flag.
How do I
- Check a document before I send it? Call
tml.Check(src, nil), or runtuios tml validate FILE. - Convert between TML text and JSON? Call
tml.Format(src, tml.JSONEncoding, nil), ortml.TextEncodingfor text. - Give an agent the format?
tml.Schema()returns the JSON Schema of TML JSON. It is also in the module astml.schema.json. - Change one value? Send a patch with one
replaceoperation. Useaddwith the path/log/-to append to an array. - Change the layout with the width? Read
view.bandin anif:narrowbelow 72 cells,mediumbelow 120 andwidefrom 120. - Draw a document in my own program? Use loom.
- Get an answer from a person in a script? Run
tuios tml show FILE --wait, and useclose('value')on the buttons.
API overview
| Name | Does |
|---|---|
Check | Parses and validates a document in either encoding. |
Parse, Validate | The two steps of Check, apart. |
Format | Prints a document in canonical TML text or TML JSON. |
Schema | Returns the JSON Schema of TML JSON. |
Node | One node of the tree: its type, attributes and children. |
StoreFor, Store | The state of a document, with its limits. |
DecodePatch, Op | JSON Patch operations. |
ParseTemplate, ParseExpr, Env | Bindings and expressions, and what they read. |
ParseActions | Parses and checks an action attribute. |
Problem, Error | A problem with its place, code and fix. |
Sanitize | Removes what must never reach a terminal. |
The README lists every component, attribute, function, action and limit.
Where it fits
- loom draws TML documents into cells. It uses tml for the tree, the store, the bindings and the actions.
- plot draws the chart components for loom.
- tuios uses tml and loom for
tuios tml show, and checks each document withtml.Checkbefore it opens a surface. - tml imports no other library and no tuios package.
Versions
The module is at v0. The API can change between minor versions. Its tags have the folder name as a prefix, such as tml/v0.1.0. The source is in the tml folder of the tuios repository, under the MIT licence.
shot
A Go library that renders a terminal screen to PNG, SVG, HTML, ANSI or text, with an optional window frame.
loom
Draw TML documents into terminal cells. Flex layout, theme roles at every colour depth, redraws of only what a patch changed, and local keys and clicks.
tuios lives only at tuios.dev and github.com/Gaurav-Gosain/tuios. tuios has no X or Twitter account. An account that offers a tuios token or presale is not this project.











































