Updated commands

This commit is contained in:
Dimitris Zlatanidis 2015-09-21 23:39:52 +03:00
parent 3cba9fd55e
commit 707b62599d

View file

@ -107,12 +107,16 @@ class SBoNetwork(object):
"O": self.choice_doinst, "O": self.choice_doinst,
"d": self.choice_download, "d": self.choice_download,
"D": self.choice_download, "D": self.choice_download,
"download": self.choice_download,
"b": self.choice_build, "b": self.choice_build,
"B": self.choice_build, "B": self.choice_build,
"build": self.choice_build,
"i": self.choice_install, "i": self.choice_install,
"I": self.choice_install, "I": self.choice_install,
"install": self.choice_install,
"c": self.choice_clear_screen, "c": self.choice_clear_screen,
"C": self.choice_clear_screen, "C": self.choice_clear_screen,
"clear": self.choice_clear_screen,
"q": self.choice_quit, "q": self.choice_quit,
"quit": self.choice_quit, "quit": self.choice_quit,
"Q": self.choice_quit "Q": self.choice_quit
@ -150,10 +154,13 @@ class SBoNetwork(object):
"O": "doinst.sh", "O": "doinst.sh",
"d": "download", "d": "download",
"D": "download", "D": "download",
"download": "download",
"b": "build", "b": "build",
"B": "build", "B": "build",
"build": "build",
"i": "install", "i": "install",
"I": "install", "I": "install",
"install": "install",
"c": "clear", "c": "clear",
"C": "clear", "C": "clear",
"clear": "clear", "clear": "clear",
@ -170,8 +177,8 @@ class SBoNetwork(object):
raise SystemExit() raise SystemExit()
try: try:
sys.stdout.write("{0}\x1b[1A{1}{2}{3}\n".format( sys.stdout.write("{0}\x1b[1A{1}{2}{3}\n".format(
" " * len(message), self.meta.color["CYAN"], " " * len(message), self.cyan, commands[self.choice],
commands[self.choice], self.meta.color["ENDC"])) self.endc))
sys.stdout.flush() sys.stdout.flush()
except KeyError: except KeyError:
pass pass