mirror of
https://github.com/mxrch/GHunt.git
synced 2026-10-18 22:00:47 +08:00
030b1e8da5
The hangouts API key was also added in the check_and_gen keys extraction, because the People API needs it
16 lines
373 B
Python
16 lines
373 B
Python
from ghunt.lib.utils import gprint
|
|
|
|
|
|
class TMPrinter():
|
|
def __init__(self):
|
|
self.max_len = 0
|
|
|
|
def out(self, text: str):
|
|
if len(text) > self.max_len:
|
|
self.max_len = len(text)
|
|
else:
|
|
text += (" " * (self.max_len - len(text)))
|
|
gprint(text, end='\r')
|
|
|
|
def clear(self):
|
|
gprint(" " * self.max_len, end="\r") |