MCPcopy
hub / github.com/NullArray/AutoSploit / get_choice

Method get_choice

lib/term/terminal.py:121–136  ·  view source on GitHub ↗

get the provided choice and return a tuple of options and the choice

(self)

Source from the content-addressed store, hash-verified

119 print("{}{}{}{}".format(spacer1, i, spacer2, item))
120
121 def get_choice(self):
122 """
123 get the provided choice and return a tuple of options and the choice
124 """
125 original_choice = raw_input(lib.settings.AUTOSPLOIT_PROMPT)
126 try:
127 choice_checker = original_choice.split(" ")[0]
128 except:
129 choice_checker = original_choice
130 if choice_checker in self.internal_terminal_commands:
131 retval = ("internal", original_choice)
132 elif choice_checker in self.external_terminal_commands:
133 retval = ("external", original_choice)
134 else:
135 retval = ("unknown", original_choice)
136 return retval
137
138 def do_show_version_number(self):
139 """

Callers 1

terminal_main_displayMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected