Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SGR escape codes in spawn stdout #25

Open
mamachanko opened this issue Mar 18, 2019 · 0 comments
Open

SGR escape codes in spawn stdout #25

mamachanko opened this issue Mar 18, 2019 · 0 comments

Comments

@mamachanko
Copy link

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?

(original issue: chjj#374)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant