mirror of
https://github.com/asciinema/asciinema.git
synced 2026-04-25 07:55:51 +03:00
[GH-ISSUE #221] asciicast v2: stored color theme spec #162
Labels
No labels
bug
compatibility
feature request
fit for beginners
help wanted
hosting
idea
improvement
packaging
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/asciinema#162
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @ku1ik on GitHub (Sep 4, 2017).
Original GitHub issue: https://github.com/asciinema/asciinema/issues/221
We're discussing version 2 of asciicast format in asciinema/asciinema#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 recand 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.
@ku1ik commented on GitHub (Sep 17, 2017):
This was added to the v2 spec in asciinema/asciinema#233.