always enable rgb for WezTerm

pull/1809/head
nick black 3 years ago
parent a8a5e51676
commit 4e03eb4549
No known key found for this signature in database
GPG Key ID: 5F43400C21CBFACC

@ -183,19 +183,11 @@ each release. Download it, and install the contents as you deem fit.
set to **Wide**, not narrow (if that doesn't work, ensure it is set to
**Narrow**, heh).
### TrueColor detection
Notcurses primarily loads control sequences from `terminfo(5)`, using the
database entry specified by the `TERM` environment variable. 24-bit "TrueColor"
color support (or at least the ability to specify 3 8-bit channels as arguments
to `setaf` and `setbf`) is indicated by the `rgb` terminfo capability. Many
terminals with RGB support do not advertise the `rgb` capability. If you
believe your terminal to support 24-bit TrueColor, this can be indicated by
exporting the `COLORTERM` environment variable as `truecolor` or `24bit`.
Note that some terminals accept a 24-bit specification, but map it down to
fewer colors.
TrueColor is always enabled for Kitty, Alacritty, Contour, and foot.
* If your terminal supports 3x8bit RGB color via `setaf` and `setbf` (most modern
terminals), but doesn't export the `rgb` terminfo capability, you can export
the `COLORTERM` environment variable as `truecolor` or `24bit`. Note that some
terminals accept a 24-bit specification, but map it down to fewer colors.
RGB is enabled whenever [Foot, Contour, WezTerm, or Kitty](TERMINALS.md) is identified.
### Fonts

@ -199,7 +199,7 @@ Note that Notcurses reprograms the console font table when running in the
Linux console (unless `NCOPTION_NO_FONT_CHANGES` is used). This adds support
for half blocks and quadrants.
### DirectColor
### 24-bit RGB
Many terminals support one or another form of non-indexed color encoding (also
known as DirectColor, RGB color, 24-bit color, or the similar but distinct
@ -216,7 +216,7 @@ implementing `rgb` use the 3x8bpc model; XTerm for instance:
Thus emitting `setaf` with an RGB value close to black can result, when
using `xterm-direct`'s `setaf` and `rgb` definitions, in a bright ANSI color.
DirectColor is always enabled for Kitty, Alacritty, Contour, and foot.
24-bit RGB is always enabled for Kitty, Alacritty, Contour, WezTerm, and foot.
### Problematic characters

@ -225,6 +225,7 @@ apply_term_heuristics(tinfo* ti, const char* termname, int fd,
ti->sprixel_cursor_hack = true;
}else if(qterm == TERMINAL_WEZTERM){
termname = "WezTerm";
ti->caps.rgb = true;
ti->caps.quadrants = true;
// FIXME get version from query
const char* termver = getenv("TERM_PROGRAM_VERSION");

Loading…
Cancel
Save