rsalmei / alive-progress

A new kind of Progress Bar, with real-time throughput, ETA, and very cool animations!
MIT License
5.45k stars 205 forks source link

Dual line mode not working in PyCharm #194

Closed Lvicek07 closed 1 year ago

Lvicek07 commented 1 year ago

When I try doing something with dual line mode in alive-progress, it does weird things. Tried it on replit.com, where it worked, but on PyCharm, it doesn't, even if it's the same code

PyCharm image Screenshot from https://github.com/rsalmei/alive-progress#-new-in-24-series image

Code:


from alive_progress import alive_bar
import time

letters = [chr(ord('A') + x) for x in range(26)]
with alive_bar(26, dual_line=True, force_tty=True, title='Alphabet') as bar:
    for c in letters:
        bar.text = f'-> Teaching the letter: {c}, please wait...'
        if c in 'HKWZ':
            print(f'fail "{c}", retry later')
        time.sleep(0.3)
        bar()
Lvicek07 commented 1 year ago

Found answer here https://github.com/rsalmei/alive-progress/issues/173#issuecomment-1169564231