Ansi.WriterSourceByte buffer writers.
Byte buffer writers for escape sequence emission.
A writer wraps a Stdlib.Bytes.t buffer and manages a write position. Writers are mutable and not thread-safe: use one writer per thread.
The type for byte buffer writers.
make buf is a writer targeting buf. The buffer must be large enough to contain all generated output; no bounds checking is performed.
make_counting () is a writer that tracks output length without writing any bytes. Useful for measuring escape sequence sizes before allocating a buffer.
reset_pos w resets the write position to zero. The underlying buffer is not cleared.
write_char w c appends character c. In counting mode, increments the position without writing.