Issue
I know that I can type %clear into the console itself, but is there a way to program %clear functionality into a script so as to allow better console flow for prompts?
Solution
You can use os.system
to send commands to the shell; 'cls'
will clear the screen in Windows. See: before and after.
(If you're not using it in the interactive console, the 0
return value will just be thrown away.)
Answered By - Air
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.