╭ tako git:(main*) ~2 ?2 · 3.0s · ✗ 1
╰ ❯ cargo run --example headless
[00:00:00.001] INIT TakoCore Engine instantiated (scrollback capacity: 10,000 lines)
[00:00:00.003] HEADLESS No renderer attached (Metal drawing is in TakoCoreUI on macOS/iOS)
[00:00:00.005] VT100 SGR mouse tracking & 24-bit TrueColor enabled
┌─── TakoCore Terminal State ──────────────────────────────────────────┐
│ Columns: 120 Rows: 36 Active Screen: Primary Cursor: [14, 2] │
│ Queued host events: 0 pending (host event-drained) │
└──────────────────────────────────────────────────────────────────────┘
╭ tako git:(main)
╰ ❯ echo -e "\e[38;2;244;88;28mLossless checkpointing, configurable scrollback bounds.\e[0m"
Lossless checkpointing, configurable scrollback bounds.
╰ ❯ █
╭ tako git:(main)
╰ ❯ tako-checkpoint --serialize --mode=delta
[00:00:00.002] Capturing snapshot of active grid + 10,000 lines scrollback...
✔ Checkpoint created: 42.8 KB compact wire format (version 3 with palette & cursor override)
[00:00:00.004] Simulating process reconnect & state restoration...
✔ Checkpoint restored in 0.12 ms. Byte-identical cell attributes, marks & hyperlinks intact.
Difference between saved state and restored state: 0 bytes drift (lossless snapshot)
╰ ❯ █
╭ tako git:(main)
╰ ❯ cargo bench --bench throughput
Benchmark: Engine Throughput (Criterion, 256 KiB batch)
feed/sgr_heavy: ████████████████████████████████ 29 MiB/s (styled 24-bit RGB)
feed/wide_chars: ███████████████████░░░░░░░░░░░░░ 17 MiB/s (CJK & emoji)
feed/plain_text: ████████████░░░░░░░░░░░░░░░░░░░░ 11 MiB/s (raw ASCII)
feed/cursor_heavy: █████████░░░░░░░░░░░░░░░░░░░░░░░ 8 MiB/s (TUI repaints)
resize/reflow_80_to_40: [227 µs] (soft-wrapped reflow)
╰ ❯ █
// C ABI for Go / C / Zig hosts with host-managed event draining
#include "prod_vt.h"
ProdVt *vt = prod_vt_new(120, 36, 10000); // cols, rows, scrollback
prod_vt_write(vt, (const uint8_t*)data, len);
prod_vt_discard_events(vt); // Null-safe event drain for headless hosts
prod_vt_free(vt);
╰ ❯ gcc -O3 -Iinclude host.c -ltako_core -o host && ./host [OK - 0 errors, events drained]
╰ ❯ █