diff options
author | Schark <jordan@schark.online> | 2023-12-01 23:11:46 -0800 |
---|---|---|
committer | Schark <jordan@schark.online> | 2023-12-01 23:11:46 -0800 |
commit | f580735aaafdc8e0c9128955fcb93c039d10b8b9 (patch) | |
tree | 604b2179c88bb419ec0421ae2c4a76c67518ae28 /style.py | |
download | cli-gpt-f580735aaafdc8e0c9128955fcb93c039d10b8b9.tar.gz cli-gpt-f580735aaafdc8e0c9128955fcb93c039d10b8b9.zip |
Initial work
Diffstat (limited to '')
-rw-r--r-- | style.py | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/style.py b/style.py new file mode 100644 index 0000000..129bdd7 --- /dev/null +++ b/style.py @@ -0,0 +1,24 @@ +import sys + +from prompt_toolkit import prompt +from prompt_toolkit.styles import Style + +class StyleLog: + + def prompt(role: str): + + + def show_ellipsis(): + loop = True + while loop: + for i in range(0, 4): + if api_call_done.is_set(): + loop = False + sys.stdout.write('\r' + ' ' * 4 + '\r') + break + time.sleep(1) + sys.stdout.write('.') + sys.stdout.flush() + sys.stdout.write('\r' + ' ' * 4 + '\r') + sys.stdout.flush() + |