🖼️ ansi stdio

Terminal text composition and animation library.

$ uvx ansi_stdio

Tools

Design

The thing is a scene graph made of Actor nodes. Each node has a clock and when rendered, can redirect calls. Haven’t decided how child relationships and recursion will work yet, so keeping this open. Probably won’t call them actors either.

Clocks are chained timers that can be paused and implement time however they like. clock.wall gives you the system time. Clock.time gives the current time etc.

Buffers are sparse grids of rich characters. They track their own size and can be merged (+= and +), queried/set (slice notation) and copied.

Object design

So far we have:

Still not figured out:

Overall plan

Next Steps