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

Consider using colorama to make ANSI escapes friendlier for Windows. #91

Open
Vbbab opened this issue Jan 5, 2021 · 0 comments
Open

Comments

@Vbbab
Copy link

Vbbab commented Jan 5, 2021

Currently, by looking at the output of mdv on Windows:

�[38;5;59m�[0m�[38;5;231mHeader 1�[0m

it appears that ANSI escapes for color are used. Windows does not natively support this, however.

There is a wrapper library called colorama which will allow ANSI escapes to be properly utilized by Windows.

Example:

import colorama  # pip install colorama

colorama.init()

# All print() calls with ANSI escapes now work on Windows

Consider using this to make mdv more friendly for Windows?

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