iTerm2: name it, always give it quadrant/rgb

This commit is contained in:
nick black 2021-07-18 21:59:15 -04:00
parent 11787f159c
commit bb7a141a3b
No known key found for this signature in database
GPG Key ID: 5F43400C21CBFACC
3 changed files with 14 additions and 10 deletions

View File

@ -192,12 +192,12 @@ 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).
* If your terminal supports 3x8bit RGB color via `setaf` and `setbf` (most modern
terminals), but exports neither the `RGB` nor `Tc` 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.
* If your terminal supports 3x8bit RGB color via `setaf` and `setbf` (most
modern terminals), but exports neither the `RGB` nor `Tc` 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 unconditionally enabled whenever
[most modern terminals](TERMINALS.md) are identified.
### Fonts

View File

@ -87,7 +87,7 @@ relies on the font. Patches to correct/complete this table are very welcome!
| [Terminology](https://github.com/borisfaure/terminology) | ❌ | ❌ |? | `TERM=terminology` | |
| [Tilda](https://github.com/lanoxx/tilda) | | ? |? | ? | |
| [tmux](https://github.com/tmux/tmux/wiki) | ✅ | ❌ |n/a |`TERM=tmux-256color` `COLORTERM=24bit`| `tmux.conf` must apply `Tc`; see below. `bce` is available with the `tmux-256color-bce` definition. |
| [wezterm](https://github.com/wez/wezterm) | ✅ | ✅ |? |`TERM=wezterm` `COLORTERM=24bit` | See below. |
| [WezTerm](https://github.com/wez/wezterm) | ✅ | ✅ |? |`TERM=wezterm` `COLORTERM=24bit` | See below. |
| [Windows Terminal](https://github.com/microsoft/terminal)| | ? |? | ? | |
| [wterm](https://github.com/majestrate/wterm) | | ? |? | ? | |
| [XFCE4 Terminal](https://gitlab.xfce.org/apps/xfce4-terminal) | ❌ | ✅ |✅ |`TERM=xfce` `COLORTERM=24bit` | No `xfce-direct` variant exists. |
@ -113,9 +113,9 @@ https://github.com/dankamongmen/notcurses/issues/1117.
Kitty is furthermore the only terminal I know to lack the `bce` (Background
Color Erase) capability, but Notcurses never relies on `bce` behavior.
### Wezterm
### WezTerm
Wezterm [implements](https://wezfurlong.org/wezterm/escape-sequences.html) some
WezTerm [implements](https://wezfurlong.org/wezterm/escape-sequences.html) some
interesting underline options, and the iTerm2 graphic protocol.
### GNU screen
@ -219,7 +219,8 @@ 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.
24-bit RGB is always enabled for Kitty, Alacritty, Contour, WezTerm, and foot.
24-bit RGB is always enabled for Kitty, Alacritty, Contour, WezTerm, iTerm2,
and foot.
### Problematic characters

View File

@ -547,6 +547,9 @@ apply_term_heuristics(tinfo* ti, const char* termname, int fd,
if(add_appsync_escapes_dcs(ti, tablelen, tableused)){
return -1;
}
termname = "iTerm2";
ti->caps.quadrants = true;
ti->caps.rgb = true;
setup_iterm_bitmaps(ti, fd);
}else if(qterm == TERMINAL_LINUX){
struct utsname un;