How to send the console text to a file?

Is there a way to send the text from the SWI Prolog console to a file?

This might be what you seek:

Is there a way to send the text from the SWI Prolog console to a file?


FYI

This is a Discourse forum which includes below each topic a list of related topics.