From 8b719d255b3f3a28b8769422b02d64fc653c1f52 Mon Sep 17 00:00:00 2001 From: bashbunni Date: Mon, 25 Nov 2024 07:43:14 -0800 Subject: [PATCH] docs: check multiplexer compat with OSC10/11 --- README.md | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) diff --git a/README.md b/README.md index d8310e6..87f4229 100644 --- a/README.md +++ b/README.md @@ -186,6 +186,43 @@ do. For instance, APC sequences are not supported yet. If you notice one of such missing sequences, or want to work on any other area of the project, feel free to open a PR. 💘 +## FAQ + +
+ +Why isn't sequin using my terminal's background color? (with multiplexer) + +related: https://github.com/charmbracelet/sequin/issues/28 +

Check your multiplexer's version:

+

Tmux

+

This could be a few things depending on your environment. First thing to +consider: are you using a terminal multiplexer (e.g. tmux)? If so, check your +tmux version is 3.4 or higher. (Tmux added support for OSC10/11 queries in 3.4 see +https://github.com/tmux/tmux/blob/master/CHANGES#L152) +`tmux -V`

+ +

GNU Screen

+

If you're a GNU screen user, check that your version is 4.99.0 or higher to +ensure OSC10/11 can be used. Not sure which version of screen you're using? +screen --version

+ +

Make sure your multiplexer config has your default terminal and COLORTERM set.

+

`tmux.conf`

+```bash +set -g default-terminal "xterm-ghostty" +setenv -g COLORTERM "truecolor" +``` + +

`~/.screenrc`

+```bash +term xterm-256color +setenv COLORTERM truecolor +defbce on +``` +

if you don't set `defbce on`, you will get a different background color on cells +cleared with an erase/insert/scroll/clear operation in the regular background +color.

+ ## Contributing We love contributions. We recommend checking out [our contribution