axiros/terminal_markdown_viewer

mdv doesn't output color codes when stdout is not a terminal

bool3max opened this issue · 0 comments

Running latest mdv on latest stable python3.

When stdout is not a terminal, mdv doesn't output color codes, causing watch to not output color. (despite it being ran with --color/-c).

e.g. :

watch --color -n 3 'mdv -t 960.847 test.md' will result in watch's output being colorless, whereas just running the same mdv command inside the shell normally causes it to produce colored output.