Lists all predicates defined in the calling module. Imported predicates
are not listed. To list the content of the module
mymodule, use one of the calls below.
?- mymodule:listing.
?- listing(mymodule:_).
History
Enhanced in 9.3.33 (👉12fac15) listing/0,1,2 to respect the terminal width.