Just built conch — a shell simulator for Typst: you write terminal-style sessions in .typ, it runs on a virtual FS (Rust WASM) and renders a terminal with colors / ANSI / animation. Three layers: frame only, ANSI only, or full shell (pipes, redirects, lots of unix-y commands).
Now supports keyboard events (left/right/home/end/backspace/ctrl-c) and is compatible with touying!
Now on Universe — https://typst.app/universe/package/conch
Source & demos: https://github.com/lucifer1004/conch
Feedback welcome, especially weird command edge cases.