package mirage-types
Consoles
Text console input/output operations.
The type representing possible errors when attaching a console.
val write : t -> string -> int -> int -> int
write t buf off len
writes up to len
chars of String.sub buf
off len
to the console t
and returns the number of bytes written. Raises Invalid_argument
if len > buf - off
.
write_all t buf off len
is a thread that writes String.sub buf
off len
to the console t
and returns when done. Raises Invalid_argument
if len > buf - off
.
val log : t -> string -> unit
log str
writes as much characters of str
that can be written in one write operation to the console t
, then writes "\r\n" to it.
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>