Skip to main contentModule console
Source - ConsoleEntry
- Single console write (line or chunk) captured during execution.
- ConsoleStream
- Identifies the console stream that received the text.
- install_forwarder
- Install (or remove) a global forwarder for console output. Passing
None
removes the current listener. - record_clear_screen
- Record a control event that asks the host to clear the visible console.
- record_console_line
- Record a line-oriented console entry, ensuring the stream text ends with a newline.
- record_console_output
- Record console output for the current thread while also forwarding it to any
registered listener (used by wasm bindings for live streaming).
- record_value_output
- Convenience helper to record formatted value output (matching MATLAB’s
name = value layout). - reset_thread_buffer
- Clears the per-thread console buffer. Call this before execution begins so
each run only returns fresh output.
- take_last_value_output
- take_thread_buffer
- Drain (and return) the buffered console entries for the current thread.