You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We're discussing version 2 of asciicast format in #196, and I think adding optional colors object to the header, containing text foreground/background color and the palette for all 8(16) colors would be a nice addition. It could be saved automatically by asciinema rec and used by web player.
As @mrabault said in asciinema/discussions#8, we can use and update a technique of obtaining the colors, as long as the palette representation in asciicast header stays the same/compatible with the web player. As for the actual technique, let's keep it discussed in asciinema/discussions#8.
Anyway, what we can add to v2 header is the optional key named colors (or theme ?):
I took inspiration to use single string value for all 16 colors from Terminator theme syntax which is compact and it's easy to write/read/parse for both humans and machines.
The text was updated successfully, but these errors were encountered:
ku1ik
changed the title
asciicast v2: color palette spec
asciicast v2: color theme spec
Sep 4, 2017
ku1ik
changed the title
asciicast v2: color theme spec
asciicast v2: stored color theme spec
Sep 4, 2017
We're discussing version 2 of asciicast format in #196, and I think adding optional colors object to the header, containing text foreground/background color and the palette for all 8(16) colors would be a nice addition. It could be saved automatically by
asciinema rec
and used by web player.As @mrabault said in asciinema/discussions#8, we can use and update a technique of obtaining the colors, as long as the palette representation in asciicast header stays the same/compatible with the web player. As for the actual technique, let's keep it discussed in asciinema/discussions#8.
Anyway, what we can add to v2 header is the optional key named
colors
(ortheme
?):I took inspiration to use single string value for all 16 colors from Terminator theme syntax which is compact and it's easy to write/read/parse for both humans and machines.
The text was updated successfully, but these errors were encountered: