mirror of
https://github.com/asciinema/asciinema.git
synced 2026-04-25 16:05:52 +03:00
[PR #617] [MERGED] Capture terminal color palette #1159
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#1159
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?
📋 Pull Request Information
Original PR: https://github.com/asciinema/asciinema/pull/617
Author: @ku1ik
Created: 2/12/2024
Status: ✅ Merged
Merged: 2/12/2024
Merged by: @ku1ik
Base:
develop← Head:capture-colors📝 Commits (1)
bf52290Capture terminal color palette📊 Changes
10 files changed (+381 additions, -37 deletions)
View changed files
📝
Cargo.lock(+1 -0)📝
Cargo.toml(+1 -0)📝
src/asciicast.rs(+68 -10)📝
src/asciicast/v1.rs(+1 -0)📝
src/asciicast/v2.rs(+121 -1)📝
src/cmd/rec.rs(+37 -22)📝
src/encoder/asciicast.rs(+3 -0)📝
src/tty.rs(+141 -4)➕
tests/casts/full.cast(+6 -0)➕
tests/casts/minimal.cast(+2 -0)📄 Description
This uses OSC sequence to query the colors from the terminal, and saves them as a theme in asciicast v2 header
(https://docs.asciinema.org/manual/asciicast/v2/#theme).
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.