portray(+Term)A dynamic predicate, which can be defined by the user to change the
behaviour of print/1
on (sub)terms. For each subterm encountered that is not a variable print/1
first calls portray/1
using the term as argument. For lists, only the list as a whole is given
to portray/1.
If
portray/1
succeeds print/1
assumes the term has been written.
- Extended in 8.5.1 (👉0ab89f5) term_html:portray//2 hook that plays a role similar to portray/1 for HTML rendering of terms.
portray(+Ref) Like portray/2;
prints on the terminal.
- Extended in 8.5.1 (👉0ab89f5) term_html:portray//2 hook that plays a role similar to portray/1 for HTML rendering of terms.