aboutsummaryrefslogtreecommitdiff
path: root/config.h
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2020-07-25 12:31:45 +0000
committerDaniel Eklöf <daniel@ekloef.se>2020-07-25 12:31:45 +0000
commitc4679e474e0546ee8dad6e122c226ece85bdb134 (patch)
tree7621016462ce4d9346b4ed01ff3e06750f15871e /config.h
parentconfig: add 'scrollback-indicator-format' option (diff)
config: rename scrollback-indicator to scrollback-indicator-style
And turn it from a boolean to an enum. It can be set to: * `none` - disables the indicator * `static` - always rendered near the top of the window * `moving` - position reflects the scrollback position
Diffstat (limited to 'config.h')
-rw-r--r--config.h19
1 files changed, 16 insertions, 3 deletions
diff --git a/config.h b/config.h
index 109eecb8..9ff83b77 100644
--- a/config.h
+++ b/config.h
@@ -39,9 +39,22 @@ struct config {
tll(struct config_font) fonts;
- int scrollback_lines;
- bool scrollback_indicator;
- enum {SCROLLBACK_INDICATOR_PERCENT, SCROLLBACK_INDICATOR_LINENO} scrollback_indicator_format;
+ struct {
+ int lines;
+
+ struct {
+ enum {
+ SCROLLBACK_INDICATOR_STYLE_NONE,
+ SCROLLBACK_INDICATOR_STYLE_STATIC,
+ SCROLLBACK_INDICATOR_STYLE_MOVING
+ } style;
+
+ enum {
+ SCROLLBACK_INDICATOR_FORMAT_PERCENT,
+ SCROLLBACK_INDICATOR_FORMAT_LINENO
+ } format;
+ } indicator;
+ } scrollback;
struct {
uint32_t fg;