Closed journeytosilius closed 3 years ago
plotille tries to figure out, if it actually should print colors. Have a look at the color-module: https://github.com/tammoippen/plotille/blob/master/plotille/_colors.py#L80 f
if it does not detect a terminal context (tty), you usually do not want to print colors, e.g. when piping into another program or redirecting into a file (those color codes are only relevant for the terminal).
If you want to inspect the codes, then write the returned str from Figure.show() into a file from within python.
i think i will add a toggle to force color output in #39 .
thanks and yes please ! this is important since if we want to embed it on an TUI, the color codes are very important
fixed it locally by removing the tty check, thanks for pointing it out :)
Hi, we are trying to figure out why we are not getting hex values for the plotille results when parsing the output with
hd
on a terminal, do you know why this might happen ?example :
I plot, setting all lines to 4bit "names" / "bright-green" the output on the terminal is correct, with all lines in green.
But when I parse it with hd I get no color code in hex :
do you know why this happens ?