summaryrefslogtreecommitdiff
path: root/style.py
diff options
context:
space:
mode:
authorSchark <jordan@schark.online>2023-12-01 23:11:46 -0800
committerSchark <jordan@schark.online>2023-12-01 23:11:46 -0800
commitf580735aaafdc8e0c9128955fcb93c039d10b8b9 (patch)
tree604b2179c88bb419ec0421ae2c4a76c67518ae28 /style.py
downloadcli-gpt-f580735aaafdc8e0c9128955fcb93c039d10b8b9.tar.gz
cli-gpt-f580735aaafdc8e0c9128955fcb93c039d10b8b9.zip
Initial work
Diffstat (limited to 'style.py')
-rw-r--r--style.py24
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()
+