Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OSC 10 / OSC 11 queries report incorrect colors #3590

Open
bash opened this issue Sep 4, 2024 · 1 comment
Open

OSC 10 / OSC 11 queries report incorrect colors #3590

bash opened this issue Sep 4, 2024 · 1 comment

Comments

@bash
Copy link

bash commented Sep 4, 2024

Issue description

When querying for the foreground or background color using the corresponding OSC sequences, zellij always answers with black.

For instance, when I send OSC 11 ; ? ST (query background) I receive back OSC 11 ; rgb:0000/0000/0000 ST even though I'm in a light terminal. Similarly in a dark terminal OSC 10 ; ? ST (query foreground) is responded to with OSC 10 ; rgb:0000/0000/0000 ST.

Example:

$ printf '\e]11;?\e\\' && cat -v
^[]11;rgb:0000/0000/0000^[\

Collected information

Basic information

zellij --version: zellij 0.40.1

stty size: 26 102

uname -av or ver(Windows): Linux taus-fedora 6.8.1-300.fc40.x86_64 #1 SMP PREEMPT_DYNAMIC Wed Mar 20 04:39:30 UTC 2024 x86_64 GNU/Linux

Terminal: Alacritty and vte (Ptyxis)

Logs
zellij-12.log
zellij.log

Further information

I noticed that when I clean the cache directory (~/.cache/zellij) I get correct results for the first run of zellij.

Originally this issue was reported in delta (dandavison/delta#1663). Reporting this here totally fell off my radar (sorry).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants
@bash and others