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

1
Cargo.lock generated
View File

@@ -93,6 +93,7 @@ dependencies = [
"mime_guess",
"nix",
"reqwest",
"rgb",
"rust-embed",
"rustyline",
"scraper",