blessed icon indicating copy to clipboard operation
blessed copied to clipboard

SGR escape codes not working

Open mamachanko opened this issue 5 years ago • 0 comments

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?

mamachanko avatar Mar 17 '19 17:03 mamachanko