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

24-bit color not working with GitHub action #158

Closed
Zaphoood opened this issue Feb 27, 2023 · 2 comments
Closed

24-bit color not working with GitHub action #158

Zaphoood opened this issue Feb 27, 2023 · 2 comments

Comments

@Zaphoood
Copy link

I have a workflow set up on a repo I'm working on for automatically generating up-to-date gifs using the vhs GitHub action. However, it seems that 24-bit color is not working as expected.

I set up a minimal repo in order to reproduce the issue, which uses neofetch in order to test 24-bit color output.

Here is the .tape file used:

Output demo.gif

Set Width 2000
Set Height 1200
Set FontSize 20

Type "neofetch"
Enter
Sleep 5s

Ctrl+D

This is the gif created by vhs:

demo

The expected output would include two rows of colored squares at the bottom right.
If I run vhs locally, everything works as expected.

I would greatly appreciate any kind of help!

@Zaphoood
Copy link
Author

I just realized that this issue might fit better at the charmbracelet/vhs-action repo. Please let me know if I should post it there instead!

@rbergmanaf
Copy link

I was looking at a similar problem running in Docker today. I found that I had to export COLORTERM=truecolor inside my tape for the app I was running to emit 24bit color instead of quantized 8bit. It looks like ttyd only sets TERM=xterm-256color by default but some color libs sniff for color support by looking at additional env values. I don't know if this will help your case or not, but you might look into this and similar terminal env values that might affect neofetch.

@bashbunni bashbunni transferred this issue from charmbracelet/vhs Jul 11, 2023
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

2 participants