terminal_markdown_viewer
terminal_markdown_viewer copied to clipboard
Consider using colorama to make ANSI escapes friendlier for Windows.
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?