vhs-action icon indicating copy to clipboard operation
vhs-action copied to clipboard

24-bit color not working with GitHub action

Open Zaphoood opened this issue 3 years ago • 2 comments

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 avatar Feb 27 '23 19:02 Zaphoood

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!

Zaphoood avatar Feb 27 '23 19:02 Zaphoood

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.

rbergmanaf avatar May 15 '23 23:05 rbergmanaf