(self)
| 236 | print('\033[8;{};{}t'.format(height, width)) |
| 237 | |
| 238 | def custom_quit(self): |
| 239 | self.head() |
| 240 | print("by CorpNewt\n") |
| 241 | print("Thanks for testing it out, for bugs/comments/complaints") |
| 242 | print("send me a message on Reddit, or check out my GitHub:\n") |
| 243 | print("www.reddit.com/u/corpnewt") |
| 244 | print("www.github.com/corpnewt\n") |
| 245 | # Get the time and wish them a good morning, afternoon, evening, and night |
| 246 | hr = datetime.datetime.now().time().hour |
| 247 | if hr > 3 and hr < 12: |
| 248 | print("Have a nice morning!\n\n") |
| 249 | elif hr >= 12 and hr < 17: |
| 250 | print("Have a nice afternoon!\n\n") |
| 251 | elif hr >= 17 and hr < 21: |
| 252 | print("Have a nice evening!\n\n") |
| 253 | else: |
| 254 | print("Have a nice night!\n\n") |
| 255 | exit(0) |
no test coverage detected