mirror of
https://github.com/getcompanion-ai/co-mono.git
synced 2026-04-15 06:04:40 +00:00
GNU screen does not support truecolor escape sequences. When pi emits truecolor SGR sequences (e.g. \x1b[38;2;102;102;102m for the dim color #666666), screen misparses the semicolon-separated parameters as individual SGR codes. The RGB value 102;102;102 maps directly to SGR 102 (bright green background), which then bleeds into every subsequent \x1b[2K line-erase, producing a bright green background on most info/status messages. detectColorMode() now returns '256color' for any TERM value that is 'screen', starts with 'screen-' (e.g. screen-256color), or starts with 'screen.' (e.g. screen.xterm-256color). The existing COLORTERM check at the top of the function already handles the opt-in case for users who have configured screen's truecolor passthrough. |
||
|---|---|---|
| .. | ||
| agent | ||
| ai | ||
| coding-agent | ||
| mom | ||
| pods | ||
| tui | ||
| web-ui | ||