1
0
Fork 0
forked from murx/murx

Document truecolor passthrough conditions

Describe the 24bit COLORTERM value, the TERM guard against
screen/tmux/linux/dumb and the nearest-256-color fallback in the
README and the manual.
This commit is contained in:
Armin 2026-11-22 04:04:58 +01:00
commit f04deae31c
2 changed files with 9 additions and 7 deletions

View file

@ -382,10 +382,11 @@ background for all attached clients. Supply six hexadecimal digits, such as
`000000` for black. The session remembers the color across reattachments. New `000000` for black. The session remembers the color across reattachments. New
sessions use the terminal's default background unless a color is supplied. sessions use the terminal's default background unless a color is supplied.
Colours are written to the outer terminal in 256-colour form (`38;5;n` / Colours are written to the outer terminal using 256-colour SGR (`38;5;n` /
`48;5;n`). Truecolor from a pane is mapped to the nearest xterm-256 entry, `48;5;n`) by default. RGB pane colours are passed through as 24-bit SGR when
unless the outer terminal advertises `COLORTERM=truecolor` and is not the outer terminal advertises `COLORTERM=truecolor` or `COLORTERM=24bit` and
screen/tmux/linux. `TERM` does not start with `screen`, `tmux`, `linux`, or `dumb`; otherwise RGB
is mapped to the nearest xterm-256 entry.
The terminal window title is set to `[murx] program`, following the active The terminal window title is set to `[murx] program`, following the active
murx window, or `[murx] hostname:program` with `--hostname`. Hostnames use murx window, or `[murx] hostname:program` with `--hostname`. Hostnames use

7
murx.1
View file

@ -269,9 +269,10 @@ Menus use a black background with a colour12 frame, colour11 titles and
selection, colour14 accents and dim colour8 separators and help text. selection, colour14 accents and dim colour8 separators and help text.
.PP .PP
UTF-8, wide characters, application cursor keys, 256 colors and alternate UTF-8, wide characters, application cursor keys, 256 colors and alternate
screens are supported. Output uses 256-color escapes, or truecolor when screens are supported. Output uses 256-color SGR by default. RGB pane colours
COLORTERM advertises truecolor and TERM does not identify screen, tmux or linux. are passed through as 24-bit SGR when COLORTERM is truecolor or 24bit and TERM
Otherwise truecolor is mapped to the nearest xterm-256 entry. does not start with screen, tmux, linux, or dumb; otherwise RGB is mapped to
the nearest xterm-256 entry.
.SH SESSION SIZE .SH SESSION SIZE
The most recently attached or resized client determines the session size, The most recently attached or resized client determines the session size,
with a minimum of 20 columns and 5 rows. with a minimum of 20 columns and 5 rows.