I’m using: SWI-Prolog version 8.1.9 on Windows 8.1
I couldn’t find a way to clear the console. If there’s a better way than that below, please let me know. If not, here’s a command I found on Stack Overflow to clear the SWIPL console window. I’ve put it in my
cls :- write('\e[H\e[2J').
From this post: