rsalmei / alive-progress

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

Odd characters in Windows cmd output #174

Closed DaveYarrow closed 2 years ago

DaveYarrow commented 2 years ago

Hi, I'm using alive-progress on Windows 10 but am seeing odd ? characters in the progress bar output chars .

from alive_progress import alive_bar
import time

with alive_bar(1000, force_tty=True) as bar:
    for i in range(1000):
        time.sleep(.005)
        bar()

The output is in a standard cmd terminal window.

How do I get rid of the ? characters?

EDIT: It seems to be a problem with some spinner/bar types and Truetype fonts in Windows. Raster fonts work fine, but a number of the bar types (waves included) don't work with the truetype fonts.

TheTechRobo commented 2 years ago

Related to #97, #88, #161, #96.

rsalmei commented 2 years ago

Hi, that is caused by the default windows terminal. As you've told, it doesn't like TrueType fonts... I'm not familiar with windows development, but I think there is a newer terminal in 10, have you tried it? Also, read the related issues above for other tips, like installing a nerd-font.

Closing this one, but feel free to reply if more help is needed.