terminal_markdown_viewer icon indicating copy to clipboard operation
terminal_markdown_viewer copied to clipboard

Consider using colorama to make ANSI escapes friendlier for Windows.

Open Vbbab opened this issue 3 years ago • 0 comments

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?

Vbbab avatar Jan 05 '21 18:01 Vbbab