Search code examples
lispclisp

Which command could be used to clear screen in CLISP?


Such as cls for cmd.exe. It's very annoy if I can't do this.


Solution

  • You can use screen:clear-window to do this:

    (screen:with-window (screen:clear-window screen:*window*))
    

    For more information see the documentation on screen. Also note that these functions are specific to clisp.