Capture terminal color palette

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 commit is contained in:
Marcin Kulik
2024-02-12 15:49:35 +01:00
parent 1d0b7da09c
commit bf52290514
10 changed files with 381 additions and 37 deletions

View File

@@ -35,3 +35,4 @@ mime_guess = "2.0.4"
tower-http = { version = "0.5.1", features = ["trace"] }
tracing = "0.1.40"
tracing-subscriber = { version = "0.3.18", features = ["env-filter"] }
rgb = "0.8.37"