default set CLICON_CLI_LINESCROLLING 1

This commit is contained in:
Olof hagsand 2017-09-24 17:05:39 +02:00
parent 229ddcf5cc
commit 936268b813

View file

@ -244,6 +244,11 @@ clicon_option_sanity(clicon_hash_t *copt)
clicon_err(OE_UNIX, 0, "CLICON_BACKEND_PIDFILE not defined in config file"); clicon_err(OE_UNIX, 0, "CLICON_BACKEND_PIDFILE not defined in config file");
goto done; goto done;
} }
/* Default is to use line-scrolling */
if (!hash_lookup(copt, "CLICON_CLI_LINESCROLLING")){
if (hash_add(copt, "CLICON_CLI_LINESCROLLING", "1", strlen("1")+1) < 0)
goto done;
}
retval = 0; retval = 0;
done: done:
return retval; return retval;