Module headless

Module headless 

Source
Expand description

Scripted I/O for tests and embeddings.

HeadlessIo replays a fixed list of input lines and records everything printed. It is the standard way to drive a session programmatically: an entire interactive transcript — including a full Purple boot, whose REPL loop is itself a read loop in Pink — can run under it with no terminal at all.

Structs§

HeadlessIo
A NarjuIo that reads from a pre-set script and writes to a buffer.