Differences
This shows you the differences between two versions of the page.
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 |
- | * subprocess : to send commands to the OS | + | * import |
---- | ---- | ||
- | ===== 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! | ||
+ | </ | ||
+ | |||
+ | ---- | ||
+ | |||
+ | ====== The Code ====== | ||
<code python> | <code python> | ||
Line 23: | Line 33: | ||
</ | </ | ||
- | ==== Usage ==== | + | ---- |
- | Call this function to clear the command line screen: | ||
- | <code python> | ||
- | clear_screen() | ||
- | ..do other stuff now that my screen is clear! | ||
- | </ |