aboutsummaryrefslogtreecommitdiff
path: root/config.c
diff options
context:
space:
mode:
authorfeeptr@codeberg.org <feeptr>2021-09-27 19:05:40 +0000
committerfeeptr@codeberg.org <feeptr>2021-10-09 20:59:52 +0000
commit650cfa18efdc38164600959e90fdaa50f58910e4 (patch)
tree3972057c2584747ab0e5050be5f0f950b81a60cf /config.c
parentMerge branch 'use-pixman-renderer' (diff)
config, render: scrollback indicator: allow configuring scrollback indicator colors
Diffstat (limited to 'config.c')
-rw-r--r--config.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/config.c b/config.c
index 3448cab6..a213075b 100644
--- a/config.c
+++ b/config.c
@@ -1324,6 +1324,18 @@ parse_section_colors(const char *key, const char *value, struct config *conf,
return true;
}
+ else if (strcmp(key, "scrollback-indicator") == 0) {
+ if (!str_to_two_colors(
+ value, &conf->colors.scrollback_indicator.fg, &conf->colors.scrollback_indicator.bg,
+ false, conf, path, lineno, "colors", "scrollback-indicator"))
+ {
+ return false;
+ }
+
+ conf->colors.use_custom.scrollback_indicator = true;
+ return true;
+ }
+
else if (strcmp(key, "urls") == 0) {
if (!str_to_color(value, &conf->colors.url, false,
conf, path, lineno, "colors", "urls"))
@@ -2926,6 +2938,7 @@ config_load(struct config *conf, const char *conf_path,
.use_custom = {
.selection = false,
.jump_label = false,
+ .scrollback_indicator = false,
.url = false,
},
},