mirror of
https://github.com/dankamongmen/notcurses
synced 2025-03-09 09:09:03 -04:00
always enable rgb for WezTerm
This commit is contained in:
parent
a8a5e51676
commit
4e03eb4549
18
README.md
18
README.md
@ -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…
x
Reference in New Issue
Block a user