From c48544e613903c617c1318b1f1cc4d7eae9daa47 Mon Sep 17 00:00:00 2001 From: Jesse Luehrs Date: Sun, 4 May 2014 18:46:28 -0400 Subject: allow the number of lines to scroll at a time to be configurable --- src/config.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/config.c') 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); } -- cgit v1.2.3-54-g00ecf