HP Forums

Full Version: Python clear console screen
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi all,

I have just started to learn python on the HP Prime. One thing I could not figure out is to clear the console screen when a program first run.

So say I am running this code that ask for an input, it is nicer if i can clear the screen before i input the variable.

How could I do this?

Thanks
I don't see a command that clears the console screen. The only option is the Clear soft button in Num view and that doesn't always appear.
You can try this, it seems to work

from hpprime import *

eval("PRINT()")

I only tried on one program and the program.text started at the top line so seems to work
Reference URL's