halo icon indicating copy to clipboard operation
halo copied to clipboard

Overwriting Spinners

Open CoziestYew804 opened this issue 4 years ago • 3 comments

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

CoziestYew804 avatar Nov 12 '19 12:11 CoziestYew804

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?

manrajgrover avatar Nov 13 '19 07:11 manrajgrover

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 !

CoziestYew804 avatar Nov 13 '19 14:11 CoziestYew804

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.

adamtheturtle avatar Apr 29 '20 08:04 adamtheturtle