Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/library/pippy/console.py
diff options
context:
space:
mode:
Diffstat (limited to 'library/pippy/console.py')
-rw-r--r--library/pippy/console.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/library/pippy/console.py b/library/pippy/console.py
new file mode 100644
index 0000000..cdbb023
--- /dev/null
+++ b/library/pippy/console.py
@@ -0,0 +1,5 @@
+"""Console helpers for pippy."""
+def clear():
+ """Clear screen on console."""
+ # magic escape sequence
+ print '\x1B[H\x1B[J' # clear screen