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

Terminal reports incorrect background color #391

Open
bash opened this issue Dec 19, 2024 · 0 comments
Open

Terminal reports incorrect background color #391

bash opened this issue Dec 19, 2024 · 0 comments

Comments

@bash
Copy link

bash commented Dec 19, 2024

Cosmic version: 77be96e

When querying the terminal for its background color
using OSC 11 it always reports black (^[]11;rgb:0000/0000/0000^[\) instead of a dark gray in dark mode and light gray in light mode.

This breaks tools that try to detect dark/light mode based on the
terminal's background color. Some of these tools are: git-delta, run0 (systemd), and bat.

Steps to reproduce:

  • Enable light mode (View -> Settings -> Theme -> Light)
  • Run printf '\x1b]11;?\e\\' && cat -v

Note: The foreground color (OSC 10) seems to be reported correctly.

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

1 participant