Availability:built-in
[semidet]write_size(+Term,
-Width, -Height, +Options)True when Width and Height describe the maximum
line width and Height the number of lines for printing Term
using
Options using write_term(Term, Options). The
computed width respects Unicode coombining and double width
characters. In addition to qvalid options for write_term/2,
it processes the options:
- max_width(+MaxWidth)
- max_height(+MaxHeight)
- If provided, fail if Width or Height would be
larger than the specified maximum. The implementation ensures that the
runtime is limited when computing the size of a huge term with a bounded
maximum.