blessed
blessed copied to clipboard
SGR escape codes not working
Hi, I am trying to get SGR escape codes working to colorize the content of a box. Following the README's suggestion I implemented a demo using git log
, see here https://gist.github.com/mamachanko/9e1d9859b25f4593788ad5da3311ad65
When running git log
on its own, there are colors. However, when providing the command's stdout to the blessed box, there are no colors.
I understand that git log probably figures out whether the device can display colors. Furthermore, there's the possibility to configure the spawn
call with the stdio
option. However, I haven't been able to wrap my head around this.
Can somebody point me in the right direction?