zellij-org / zellij

A terminal workspace with batteries included
https://zellij.dev
MIT License
21.01k stars 641 forks source link

idea/ask: dynamic colors via escape sequences, per-pane? #2105

Open colemickens opened 1 year ago

colemickens commented 1 year ago

Hi,

I don't quite understand all the layering involved behind how colorschemes work when passing through zellij, so I don't know if this is even a valid request, but:

wezterm can dynamically change the terminal emulator's color palette via escape sequences, see here:

but, these don't do anything when used through zellij.

what should I expect here? Can zellij do better? Passing them through, or handling them maybe on a per-pane basis so that each pane could wind up with a different palette depending on how I use it?

colemickens commented 1 year ago

and of course I meant to link to this on the wezterm docs: https://wezfurlong.org/wezterm/config/appearance.html#dynamic-color-escape-sequences

imsnif commented 1 year ago

This actually should work... I just took a quick look at the code to make sure: we do handle these ANSI codes (OSC 4) and should be rendering them.

I'll try to dive deeper into this before the next version if I find the time.

imsnif commented 1 year ago

Actually, @colemickens - if you could help me out with a quick test? Does this work for you for output generated after running the script? Could this be the issue?