GeezerVison is showing github.com — docs(cli-rs): note OpenTUI #1982 in the GNU screen color deviation · anomalyco/opencode@8c6a707
File tree
Expand file treeCollapse file tree
Open diff view settings
packages/cli-rs/parity/deviations
Expand file treeCollapse file tree
Open diff view settings
Collapse file
Copy file name to clipboardExpand all lines: packages/cli-rs/parity/deviations/OT1967-screen-256-colors.md +3-3Lines changed: 3 additions & 3 deletions - Display the source diff
- Display the rich diff
| Original file line number | Diff line number | Diff line change |
|---|
@@ -4,11 +4,11 @@ TypeScript: the TUI uses `@opentui/core` 0.8.1 from npm. Inside GNU screen (`STY |
4 | 4 | `TMUX`), an inherited `COLORTERM=truecolor` or `24bit` makes it write 24-bit SGR colors (`38;2;r;g;b`). Screen 5 |
5 | 5 | drops these unless its `truecolor` setting is on, so cells lose their color. |
6 | 6 |
|
7 | | -Rust: the client pins OpenTUI `c08bb0e90`, which includes anomalyco/opentui#1967. Inside GNU screen, OpenTUI ignores |
8 | | -`COLORTERM` and writes 256-color SGR (`38;5;n`). Set `OPENTUI_FORCE_TRUECOLOR=1` (or `true`) to force 24-bit color, |
| 7 | +Rust: the client pins OpenTUI `48b6da69d`, which includes anomalyco/opentui#1967 and #1982. Inside GNU screen, OpenTUI |
| 8 | +ignores `COLORTERM` and Windows Terminal's `WT_SESSION` and writes 256-color SGR (`38;5;n`). Set `OPENTUI_FORCE_TRUECOLOR=1` (or `true`) to force 24-bit color, |
9 | 9 | for example with `setenv OPENTUI_FORCE_TRUECOLOR 1` in `.screenrc` when screen's `truecolor` is on. With |
10 | 10 | `TERM=screen-256color COLORTERM=truecolor` under a PTY, the Rust home screen writes 200 `38;5`/`48;5` colors and no |
11 | 11 | `38;2`/`48;2` colors; TS writes 274 `38;2`/`48;2` colors. With `OPENTUI_FORCE_TRUECOLOR=1`, both write 24-bit. |
12 | 12 |
|
13 | 13 | Reason: the OpenTUI fix landed after the npm release that TS uses. The difference goes away when TS moves to an |
14 | | -`@opentui/core` release that includes #1967. |
| 14 | +`@opentui/core` release that includes #1967 and #1982. |