From 13d5f0c503d8908b61fb2fc2265190b71f5e7e99 Mon Sep 17 00:00:00 2001 From: Avery Mcnab Date: Tue, 4 Nov 2025 15:02:03 +0000 Subject: [PATCH] Add an example for `palette` configuration I found this syntax a bit confusing when I first read it, so I thought it would be helpful for the next person to add a short example. --- src/config/Config.zig | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/config/Config.zig b/src/config/Config.zig index f8322d5fc..027c5b158 100644 --- a/src/config/Config.zig +++ b/src/config/Config.zig @@ -699,7 +699,8 @@ foreground: Color = .{ .r = 0xFF, .g = 0xFF, .b = 0xFF }, /// Color palette for the 256 color form that many terminal applications use. /// The syntax of this configuration is `N=COLOR` where `N` is 0 to 255 (for /// the 256 colors in the terminal color table) and `COLOR` is a typical RGB -/// color code such as `#AABBCC` or `AABBCC`, or a named X11 color. +/// color code such as `#AABBCC` or `AABBCC`, or a named X11 color. For example, +/// `palette = 5=#BB78D9` will set the 'purple' color. /// /// The palette index can be in decimal, binary, octal, or hexadecimal. /// Decimal is assumed unless a prefix is used: `0b` for binary, `0o` for octal,