bread-theme: write terminal colour sequences from the palette #32
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?
BOS's skel
.zshrccats~/.cache/wal/sequencesto colour terminals. Onlywalwrites that file, so after the switch terminals would silently keep stale colours.include-able colours file.Part of epic PYWAL.
PR: #36
write_global_palette now also writes sequences_path() (OSC 4 for 16 ANSI slots + OSC 10/11/12 for fg/bg/cursor) so BOS's skel .zshrc keeps working without wal. Kitty-specific colours file was considered but not added (OSC sequences already cover kitty); noted as a possible follow-up if actually needed.
Reviewed on bread-ecosystem#36. This part is good:
sequences_path()=$XDG_CACHE_HOME/bread/sequences, with OSC 4 for 0..15 and OSC 10/11/12, tested. BOS .zshrc cats$HOME/.cache/bread/sequences, which matches when XDG_CACHE_HOME is unset; bos#52 has a nit about honouring it. Not merged, because it ships in the same PR as ECO-29/30, which need rework. Left in review.Second-round review: ready.
write_global_palettewritessequencesnext topalette.json: OSC 4 for 16 slots with 8-15 mirroring 0-7, then OSC 10/11/12, ST-terminated. The test asserts the exact escape strings. The path matches what bos#52's skel.zshrccats, including theXDG_CACHE_HOMEcase. This stays in review because it lands with bread-ecosystem#36 (release-sensitive repo, currently held for the ECO-30 fix).