MCPcopy Index your code
hub / github.com/lzhoang2801/OpCore-Simplify / head

Method head

Scripts/utils.py:188–200  ·  view source on GitHub ↗
(self, text = None, width = 68, resize=True)

Source from the content-addressed store, hash-verified

186 print("")
187
188 def head(self, text = None, width = 68, resize=True):
189 if resize:
190 self.adjust_window_size()
191 os.system('cls' if os.name=='nt' else 'clear')
192 if text == None:
193 text = self.script_name
194 separator = "═" * (width - 2)
195 title = " {} ".format(text)
196 if len(title) > width - 2:
197 title = title[:width-4] + "..."
198 title = title.center(width - 2)
199
200 print("╔{}╗\n║{}║\n╚{}╝".format(separator, title, separator))
201
202 def adjust_window_size(self, content=""):
203 lines = content.splitlines()

Callers 15

progress_barMethod · 0.95
exit_programMethod · 0.95
run_updateMethod · 0.80
show_oclp_warningMethod · 0.80
select_macos_versionMethod · 0.80
before_using_efiMethod · 0.80
mainMethod · 0.80
OpCore-Simplify.pyFile · 0.80
check_compatibilityMethod · 0.80

Calls 1

adjust_window_sizeMethod · 0.95

Tested by

no test coverage detected