diff options
author | Jesse Luehrs <doy@tozt.net> | 2014-05-04 18:46:28 -0400 |
---|---|---|
committer | Jesse Luehrs <doy@tozt.net> | 2014-05-04 18:46:28 -0400 |
commit | c48544e613903c617c1318b1f1cc4d7eae9daa47 (patch) | |
tree | d8051bbe946d7f611b43e9c8866b22ab1b225d50 /src/config.c | |
parent | 3c4d1c9d43c80abf5a938d1f5416e7a9d4f339dd (diff) | |
download | runes-c48544e613903c617c1318b1f1cc4d7eae9daa47.tar.gz runes-c48544e613903c617c1318b1f1cc4d7eae9daa47.zip |
allow the number of lines to scroll at a time to be configurable
Diffstat (limited to 'src/config.c')
-rw-r--r-- | src/config.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/config.c b/src/config.c index 1179a3d..3a4ae4a 100644 --- a/src/config.c +++ b/src/config.c @@ -310,6 +310,8 @@ static void runes_config_set_defaults(RunesTerm *t) config->default_rows = 24; config->default_cols = 80; + + config->scroll_lines = 3; } static FILE *runes_config_get_config_file() @@ -494,6 +496,9 @@ static void runes_config_set(RunesTerm *t, char *key, char *val) else if (!strcmp(key, "cols")) { config->default_cols = runes_config_parse_uint(val); } + else if (!strcmp(key, "scroll_lines")) { + config->scroll_lines = runes_config_parse_uint(val); + } else if (!strcmp(key, "command")) { config->cmd = runes_config_parse_string(val); } |