halo
halo copied to clipboard
Overwriting Spinners
Description
Basically I have multiple threads and for each thread I defined an instance of halo spinner , but when running the program the halo status just overwrites constantly between each thread until success or failure. I'd like it to print a new line of halo spinner text for each thread , and update only that line till success or failure
System settings
- Operating System:Mac OS
- Terminal in use: venv PyCharm
- Python version:3.6
- Halo version: 0.0.28
-
pip freeze
output: beautifulsoup4==4.8.1 browsercookie==0.7.5 bs4==0.0.1 certifi==2019.9.11 cfscrape==2.0.8 chardet==3.0.4 colorama==0.4.1 cursor==1.3.4 entrypoints==0.3 halo==0.0.28 idna==2.8 keyring==19.2.0 log-symbols==0.0.14 lxml==4.4.1 lz4==2.2.1 pycrypto==2.6.1 requests==2.22.0 requests-file==1.4.3 selenium==3.141.0 selenium-requests==1.3 six==1.13.0 soupsieve==1.9.5 spinners==0.0.23 termcolor==1.1.0 tldextract==2.2.2 urllib3==1.25.6
Currently, the code is written for synchronous operations and renders for one line. Looks like you wish to render multiple spinners in parallel. This is a feature request. Would you like to work on it?
I've tried to modify the code adding curses but it doesn't work. But that's not an issue I'll try to figure out a solution thanks !
This is a feature that I would like but currently cannot work on. If someone else wishes to, perhaps looking at https://github.com/docker/compose/blob/53d00f76777d111c192b0674eb89f2073da73cf0/compose/parallel.py would be useful.