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

Method do_display_history

lib/term/terminal.py:108–119  ·  view source on GitHub ↗

display the history from the history files

(self)

Source from the content-addressed store, hash-verified

106 self.history.append(cmd)
107
108 def do_display_history(self):
109 """
110 display the history from the history files
111 """
112 for i, item in enumerate(self.history, start=1):
113 if len(list(str(i))) == 2:
114 spacer1, spacer2 = " ", " "
115 elif len(list(str(i))) == 3:
116 spacer1, spacer2 = " ", " "
117 else:
118 spacer1, spacer2 = " ", " "
119 print("{}{}{}{}".format(spacer1, i, spacer2, item))
120
121 def get_choice(self):
122 """

Callers 1

terminal_main_displayMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected