Search code examples
prolog

How to clear screen in SICStus Prolog


I'm using SICStus 4.2.0 and I was not able to find out how to clear the content of the console. Is it even possible?


Solution

  • write('\33\[2J').
    

    This is in no way specific to SICStus. It is the ANSI escape code and works in any ISO conforming system.