(self)
| 261 | print('\033[8;{};{}t'.format(height, width)) |
| 262 | |
| 263 | def custom_quit(self): |
| 264 | self.head() |
| 265 | print("by CorpNewt\n") |
| 266 | print("Thanks for testing it out, for bugs/comments/complaints") |
| 267 | print("send me a message on Reddit, or check out my GitHub:\n") |
| 268 | print("www.reddit.com/u/corpnewt") |
| 269 | print("www.github.com/corpnewt\n") |
| 270 | # Get the time and wish them a good morning, afternoon, evening, and night |
| 271 | hr = datetime.datetime.now().time().hour |
| 272 | if hr > 3 and hr < 12: |
| 273 | print("Have a nice morning!\n\n") |
| 274 | elif hr >= 12 and hr < 17: |
| 275 | print("Have a nice afternoon!\n\n") |
| 276 | elif hr >= 17 and hr < 21: |
| 277 | print("Have a nice evening!\n\n") |
| 278 | else: |
| 279 | print("Have a nice night!\n\n") |
| 280 | exit(0) |
no test coverage detected