How to clear the Serial Terminal in the IDE using Python code?

It would be handy to be able to programmatically clear the terminal.

Send the \0.

The IDE supports the following escape codes:

It works. Thanks.