Explorar el Código

add clear screen functionality, to make it safer ...

Oz Nahum hace 12 años
padre
commit
51b3de883d
Se han modificado 1 ficheros con 7 adiciones y 1 borrados
  1. 7 1
      pwman/ui/cli.py

+ 7 - 1
pwman/ui/cli.py

@@ -458,12 +458,18 @@ class PwmanCli(cmd.Cmd):
         except Exception, e:
             self.error(e)
     
+    def do_cls(self,args):
+        os.system('clear')
     ##
     ## Help functions
     ##
     def usage(self, string):
         print "Usage: %s" % (string)
-        
+    
+    def help_cls(self):
+        self.usage("cls")
+        print "Clear the Screen from information."
+
     def help_ls(self):
         self.help_list()