|Did you know ...||Search Documentation:|
print(Term) :- current_prolog_flag(print_write_options, Options), !, write_term(Term, Options). print(Term) :- write_term(Term, [ portray(true), numbervars(true), quoted(true) ]).
predicate is used primarily through the
~p escape sequence
which is commonly used in the recipes used by
to emit messages.
The classical definition of this predicate is equivalent to the ISO
using the options
allows the user to implement application-specific printing of terms
printed during debugging to facilitate easy understanding of the output.
library(portray_text). SWI-Prolog adds
to (1) facilitate the copying/pasting of terms that are not affected by
and to (2) allow numbers, atoms and strings to be more easily