• Places
    • Home
    • Graphs
    • Prefixes
  • Admin
    • Users
    • Settings
    • Plugins
    • Statistics
  • CPACK
    • Home
    • List packs
    • Submit pack
  • Repository
    • Load local file
    • Load from HTTP
    • Load from library
    • Remove triples
    • Clear repository
  • Query
    • YASGUI SPARQL Editor
    • Simple Form
    • SWISH Prolog shell
  • Help
    • Documentation
    • Tutorial
    • Roadmap
    • HTTP Services
  • Login

4.20 Term reading and writing
All Application Manual Name SummaryHelp

  • Documentation
    • Reference manual
      • Built-in Predicates
        • Term reading and writing
          • print/1
          • print/2
          • write/1
          • write/2
          • write_canonical/1
          • write_canonical/2
          • writeln/1
          • writeln/2
          • writeq/1
          • writeq/2
          • write_term/2
          • write_term/3
          • write_size/4
          • portray/1
          • read/1
          • read/2
          • read_term/2
          • read_term/3
          • read_clause/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 is a count of display columns, as in line_position/2: it respects Unicode combining and double width characters and does not count ANSI escape sequences. 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.
ClioPatria (version V3.1.1-59-g7b9a7a3)