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

Method exit_program

Scripts/utils.py:208–233  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

206 print('\033[8;{};{}t'.format(max(rows+6, 30), max(cols+2, 100)))
207
208 def exit_program(self):
209 self.head()
210 width = 68
211 print("")
212 print("For more information, to report errors, or to contribute to the product:".center(width))
213 print("")
214
215 separator = "─" * (width - 4)
216 print(f" ┌{separator}┐ ")
217
218 contacts = {
219 "Facebook": "https://www.facebook.com/macforce2601",
220 "Telegram": "https://t.me/lzhoang2601",
221 "GitHub": "https://github.com/lzhoang2801/OpCore-Simplify"
222 }
223
224 for platform, link in contacts.items():
225 line = f" * {platform}: {link}"
226 print(f" │{line.ljust(width - 4)}│ ")
227
228 print(f" └{separator}┘ ")
229 print("")
230 print("Thank you for using our program!".center(width))
231 print("")
232 self.request_input("Press Enter to exit.".center(width))
233 sys.exit(0)

Callers 10

select_macos_versionMethod · 0.80
mainMethod · 0.80
select_acpi_tablesMethod · 0.80

Calls 2

headMethod · 0.95
request_inputMethod · 0.95

Tested by

no test coverage detected