-
Notifications
You must be signed in to change notification settings - Fork 7
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
Use ansi color terminal palette by default #28
Comments
Hi! Funny, we just opened a PR for a 4-bit ANSI color scheme: #22 But also, Sequin has a light background theme that should be automatically enabled when needed, so I'm curious why the detection isn't working. What terminal, shell and operating system are you using? |
Wezterm, nushell, windows |
Edit 3: Correction, I ran WezTerm tests inside terminal multiplexer, it seems Faulty tests from inside multiplexerEdit 2: Edit:
|
I'm not sure how the light/dark theme would be detected by applications? There is no env variable set, from what I can see. My terminal apps all use ANSI colors, and these are mapped by my wezterm config to certain colors, based on the system theme. |
@mkotowski Keep in mind that Sequin uses Lip Gloss v2 which doesn't depend on Termenv. See |
@mkotowski also, you might want to add something like this to your tmux config: make sure to set it to your actual terminal though, mine is ghostty so that's what I have there. |
@chtenb We can auto-detect the background color either via OSC or environment variable depending on the terminal and system (@aymanbagas, correct me if I'm wrong here). What it sounds like is that Windows isn't detecting the background color because input is a pipe. We're looking into this. In the meantime we'll merge #22. |
@meowgorithm you tagged the wrong ayman...you want @aymanbagabas. |
…erminal This change explicitly opens CONIN/CONOUT when either in/out files is not a terminal. Otherwise, the background color query fails because the streams are not console devices. Fixes: charmbracelet/sequin#28
I've opened charmbracelet/lipgloss#444 to fix this issue in Lip Gloss v2. |
@ayman Sorry about that, though it's nice to meet the person behind the original Ayman handle. It looks like you're working on some cool stuff. |
@aymanbagabas Thanks! I missed that. 🙂 @caarlos0 Thanks for the tip, but I have both |
@mkotowski What's your Tmux version? |
@aymanbagabas tmux 3.2a, beyond setting COLORTERM and TERM no customization in my conf file, running inside ubuntu 22.04 image set-up using distrobox. |
Sounds about right. Tmux added support to OSC10/11 query in 3.4 see https://github.com/tmux/tmux/blob/master/CHANGES#L152 |
Ah, I see 🤦, why did I thought it was introduced in an earlier version? Then sorry for a false alarm 😅 |
…erminal This change explicitly opens CONIN/CONOUT when either in/out files is not a terminal. Otherwise, the background color query fails because the streams are not console devices. Fixes: charmbracelet/sequin#28
No worries, we should put a note somewhere about Tmux and GNU Screen. |
Describe the bug
The colors used by this app are not so readable on some terminal themes
If you would stick to the 8 basic ansi colors for the foreground, this issue should be resolved for everyone, and also adapt to their terminal color palette automatically.
The text was updated successfully, but these errors were encountered: