We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent df9e1a4 commit c0910ecCopy full SHA for c0910ec
password_manager.py
@@ -87,8 +87,13 @@ class EncryptionException(PasswordManagerException):
87
"""Cannot encrypt data!"""
88
89
90
-def clear_screen():
91
- os.system('reset')
+# https://stackoverflow.com/questions/1854/python-what-os-am-i-running-on
+if platform.system() == "Windows":
92
+ def clear_screen():
93
+ os.system('cls')
94
+else:
95
96
+ os.system('reset')
97
98
99
def warn_print(s):
@@ -724,6 +729,8 @@ def _command_clear(self):
724
729
def _command_exit(self):
725
730
"""Exit"""
726
731
732
+ print "hola"
733
+ clear_screen()
727
734
exit()
728
735
736
@cmd("random_pass")
0 commit comments