python_wiki:clear_screen

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
python_wiki:clear_screen [2015/03/09 23:24]
billdozor
python_wiki:clear_screen [2019/05/25 23:50] (current)
Line 6: Line 6:
  
 **Checklist** **Checklist**
-  * sys : to check for platform +  * import sys : to check for platform 
-  * subprocess : to send commands to the OS+  * import subprocess : to send commands to the OS
  
 ---- ----
  
-===== The Code =====+====== Usage ====== 
 + 
 +Call this function to clear the command line screen: 
 +<code python> 
 +clear_screen() 
 +..do other stuff now that my screen is clear! 
 +</code> 
 + 
 +---- 
 + 
 +====== The Code ======
  
 <code python> <code python>
Line 23: Line 33:
 </code> </code>
  
-==== Usage ====+----
  
-Call this function to clear the command line screen: 
-<code python> 
-clear_screen() 
-..do other stuff now that my screen is clear! 
-</code> 
  • python_wiki/clear_screen.1425957863.txt.gz
  • Last modified: 2019/05/25 23:50
  • (external edit)