8.18
5 Low-Level Output🔗ℹ 
This module contains the actual implementation of universal buffer
output to virtual terminal. It also contains various parameters
configuring the default behaviour of such output. These parameters are
reprovided by the tui/ubuf main module.
Prepares VT sequences and characters to be output in buffer
(which must be large enough) and writes the result into given
port.
The arguments which names are the same as ubuf? struct fields
have the same meaning in this procedure.
If linear? is #t, no characters are skipped when
creating the update and explicit position on screen is ignored. Lines
are terminated by newline character(s).
Otherwise x0 and y0 are the position on the screen
where to start writing the character cells contents.
If only-dirty? is #t, then a delta update is
computed which assumes that the screen contents are already the same
as given cells contents and only those cells marked with
tfc-dirty-true must be redrawn.
If clear-dirty? is #t, then any cells marked with
tcf-dirty-true have this mark removed after putting the cells
contents into the output buffer.
If last-newline? is #t then in linear mode an extra
newline is produced.