Esc

vt_feed

procedureextensionsince 0.36.1Source
  • macOS: vt_feed works on macOS
  • Linux: vt_feed works on Linux
  • Windows: vt_feed works on Windows
  • Wasm: vt_feed works on Wasm

Feeds arbitrary chunks; returns the first limit error in this call while consuming all bytes. Example: error := vt_feed(*p, "\x1b[1;2H", on_action, user_data); Do not reenter this parser or change its options from a callback. Invalid options consume nothing.

Signature

vt_feed :: (
    p: *Vt_Parser,
    bytes: string,
    callback: Vt_Callback,
    data: *void = null
) -> Vt_Error

See also