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

BUG REPORT Spinner shows up for each function that runs #136

Open
C4PT41ND34DP00L opened this issue Nov 21, 2019 · 0 comments
Open

BUG REPORT Spinner shows up for each function that runs #136

C4PT41ND34DP00L opened this issue Nov 21, 2019 · 0 comments

Comments

@C4PT41ND34DP00L
Copy link

C4PT41ND34DP00L commented Nov 21, 2019

Not sure if this is a bug or if I am doing something wrong But the spinner shows up for each function

Description

SO my code is
from halo import Halo
import time
test_list = [1,2,3,4,5,6,7,8,9]
def function1():
time.sleep(2)
for num in test_list:
test_num = num100
print(test_num)
def function2():
time.sleep(2)
for num in test_list:
test_num = num
200
print(test_num)
def main():
function1()
function2()

spinner = Halo(text='test', text_color="green", spinner='simpleDotsScrolling',placement="right",animation='marquee')
spinner.start()
main()
spinner.stop()

output is
test |
100
200
test300
-400
500
600
700
800
900
test /200
400
600
800
1000
1200
1400
1600
1800

using with Halo output is
test -100
200
300
400
500
600
700
800
900
test /200
400
600
800
1000
1200
1400
1600
1800

System settings

  • Operating System: Windows
  • Terminal in use: CMD
  • Python version: 3.7
  • Halo version: Latest

Expected behaviour

I expected it to shows
spinner
function1 output
function2 output

Steps to recreate

Run example code i provided in windows

People to notify

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

No branches or pull requests

1 participant