SWI-Prolog Did You Know Did you know? print_term/2 can print large terms in readable format Search Documentation:
Predicate ws_receive/3