Did you know? XPCE supports a sophisticated styled text engineSearch Documentation:
SWI-Prolog owl logoPredicate with_output_to/2