Stateful, declarative & predictive library to build reactive terminal UIs.
-
The state of terminal at any given point can be represented by a simple object with the type –
{ text: string , input: | null | { position: { x: number , y: number } , caretOffset: number , length: number } }
-
The
state.text
is the (preferable) source of truth for all other internal app state. And optionallystate.input
but should be avoided if possible.
Will add soon, by the time look at src/examples/hello.ts