Expand description
Interactive subprocess I/O (spawn + piped stdin/stdout).
Windjammer std::subprocess maps here. Uses opaque handles so backends can swap
implementation without changing the WJ API.
Structs§
- Subprocess
Handle - Opaque handle returned to Windjammer (
Subprocess.handle).
Functions§
- close
- frames_
in_ agent_ command - Parse
frames=Nfrom an agent CMD payload (default 1). - invalid_
handle - is_
valid - kill
- read_
agent_ obs_ n - Read N
@AGENT OBSlines; returns the payload of the last one (no prefix). - read_
line - read_
line_ until_ prefix - Read lines until one starts with
prefix(e.g.@AGENT OBS). - spawn
- Spawn a program with piped stdin/stdout (stderr inherits to host). A background thread drains stdout so game init logs cannot deadlock the pipe.
- wait
- write_
line