4.20 Term reading and writing
All Application Manual Name SummaryHelp

  • Documentation
    • Reference manual
      • Built-in Predicates
        • Term reading and writing
          • write_term/2
          • write_term/3
          • write_size/4
          • write_canonical/1
          • write_canonical/2
          • write/1
          • write/2
          • writeq/1
          • writeq/2
          • writeln/1
          • writeln/2
          • print/1
          • print/2
          • portray/1
          • read/1
          • read/2
          • read_clause/3
          • read_term/2
          • read_term/3
          • read_term_from_atom/3
          • read_term_with_history/2
          • prompt/2
          • prompt1/1
    • Packages
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.