[PR #617] [MERGED] Capture terminal color palette #1159

Closed
opened 2026-03-15 11:21:44 +03:00 by kerem · 0 comments
Owner

📋 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: developHead: capture-colors


📝 Commits (1)

  • bf52290 Capture 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.

## 📋 Pull Request Information **Original PR:** https://github.com/asciinema/asciinema/pull/617 **Author:** [@ku1ik](https://github.com/ku1ik) **Created:** 2/12/2024 **Status:** ✅ Merged **Merged:** 2/12/2024 **Merged by:** [@ku1ik](https://github.com/ku1ik) **Base:** `develop` ← **Head:** `capture-colors` --- ### 📝 Commits (1) - [`bf52290`](https://github.com/asciinema/asciinema/commit/bf522905147a14c163a5a4552f7850b5720652c3) Capture terminal color palette ### 📊 Changes **10 files changed** (+381 additions, -37 deletions) <details> <summary>View changed files</summary> 📝 `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) </details> ### 📄 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). --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-03-15 11:21:44 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/asciinema#1159
No description provided.