Skip to content

Commit

Permalink
Merge pull request n1nj4sec#519 from b2az/patch-2
Browse files Browse the repository at this point in the history
Added simple 'clear'
  • Loading branch information
n1nj4sec authored Oct 27, 2017
2 parents f0a54ca + b4cd8a1 commit 76bfa0b
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions pupy/pupylib/PupyCmd.py
Original file line number Diff line number Diff line change
Expand Up @@ -1303,6 +1303,13 @@ def do_read(self, arg):
self.cmdqueue.extend(f.read().splitlines())
except Exception as e:
self.display_error(str(e))

def do_clear(self, arg):
""" clears the screen """
if sys.platform == 'win32':
os.system('cls')
else:
os.system('clear')

def _complete_path(self, path=None):
"Perform completion of filesystem path."
Expand Down

0 comments on commit 76bfa0b

Please sign in to comment.