Skip to content

Instantly share code, notes, and snippets.

@macagua
Last active December 12, 2015 02:49
Show Gist options
  • Save macagua/4702250 to your computer and use it in GitHub Desktop.
Save macagua/4702250 to your computer and use it in GitHub Desktop.
Cleanup action to a shell console from a Python script, is a example python script that simulate the cleanup action to a shell console, it do that to scroll the screen down lots of lines.
# -*- coding: utf8 -*-
def cls():
''' Python script main function '''
print "\n" * 100
if __name__ == '__main__':
''' Python script main function '''
cls()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment