feat(render): add configurable attribute colors for bold, italic, and underline

Introduce optional color theme entries for bold, italic, and underline text
when the foreground color is default. This allows legacy applications using
SGR attributes instead of explicit colors to be rendered with user-defined
attribute colors. Brightening via `bold_in_bright` is suppressed when an
explicit attribute color is applied.

This adds compatibility with the rxvt-unicode settings `colorBD`,
`colorIT` and `colorUL`.

Fixes: #2261
This commit is contained in:
Florian Best 2026-01-17 03:38:53 +01:00
parent b78cc92322
commit 4864140c10
8 changed files with 60 additions and 2 deletions

View file

@ -1109,6 +1109,21 @@ The default theme used is *colors-dark*, unless
Foreground (text) and background color to use in selected
text. Default: _inverse foreground/background_.
*bold*
Specifies the color to use for bold characters when the foreground color is the default (undefined).
This setting applies primarily to legacy applications that utilize SGR 1 codes instead of SGR 9 codes.
If not set, the behavior defaults to the terminals standard bold rendering. Default: unset.
*italic*
Specifies the color to use for italic characters when the foreground color is the default (undefined).
This setting applies primarily to legacy applications that utilize SGR 1 codes instead of SGR 9 codes.
If not set, the behavior defaults to the terminals standard italic rendering. Default: unset.
*underline*
Specifies the color to use for underline characters when the foreground color is the default (undefined).
This setting applies primarily to legacy applications that utilize SGR 1 codes instead of SGR 9 codes.
If not set, the behavior defaults to the terminals standard underline rendering. Default: unset.
*jump-labels*
Two color values specifying the foreground (text) and background
colors to use when rendering jump labels in URL mode. Default: