Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Overwriting Spinners #135

Open
CoziestYew804 opened this issue Nov 12, 2019 · 3 comments · May be fixed by #155
Open

Overwriting Spinners #135

CoziestYew804 opened this issue Nov 12, 2019 · 3 comments · May be fixed by #155

Comments

@CoziestYew804
Copy link

CoziestYew804 commented Nov 12, 2019

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
@manrajgrover
Copy link
Owner

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?

@CoziestYew804
Copy link
Author

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 !

@adamtheturtle
Copy link
Contributor

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.

@frostming frostming linked a pull request Oct 28, 2020 that will close this issue
3 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants