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

@ -141,6 +141,9 @@ struct color_theme {
uint32_t selection_fg;
uint32_t selection_bg;
uint32_t url;
uint32_t bold;
uint32_t italic;
uint32_t underline;
uint32_t dim[8];
uint32_t sixel[16];