non-line scrolling mode in getline
This commit is contained in:
parent
41f30efce9
commit
229ddcf5cc
5 changed files with 15 additions and 0 deletions
|
|
@ -1,5 +1,8 @@
|
|||
# Clixon CHANGELOG
|
||||
|
||||
* Support for non-line scrolling in CLI, eg wrap lines. Set with:
|
||||
CLICON_CLI_LINESCROLLING 0
|
||||
|
||||
## 3.3.2 Aug 27 2017
|
||||
|
||||
### Known issues
|
||||
|
|
|
|||
|
|
@ -146,6 +146,9 @@ cli_syntax_set(clicon_handle h,
|
|||
cli_syntax_t *stx)
|
||||
{
|
||||
struct cli_handle *cl = handle(h);
|
||||
|
||||
if (cl->cl_stx)
|
||||
free(cl->cl_stx);
|
||||
cl->cl_stx = stx;
|
||||
return 0;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -392,6 +392,7 @@ main(int argc, char **argv)
|
|||
cli_plugin_start(h, argc+1, argv-1);
|
||||
*(argv-1) = tmp;
|
||||
|
||||
cligen_line_scrolling_set(cli_cligen(h), clicon_option_int(h,"CLICON_CLI_LINESCROLLING"));
|
||||
/* Launch interfactive event loop, unless -1 */
|
||||
if (restarg != NULL && strlen(restarg)){
|
||||
char *mode = cli_syntax_mode(h);
|
||||
|
|
|
|||
|
|
@ -119,6 +119,10 @@ CLICON_XMLDB_PLUGIN libdir/xmldb/text.so
|
|||
# Dont include keys in cvec in cli vars callbacks, ie a & k in 'a <b> k <c>' ignored
|
||||
# CLICON_CLI_VARONLY 1
|
||||
|
||||
# Set to 0 if you want CLI to wrap to next line.
|
||||
# Set to 1 if you want CLI to scroll sideways when approaching right margin
|
||||
# CLICON_CLI_LINESCROLLING 1
|
||||
|
||||
# FastCGI unix socket. Should be specified in webserver
|
||||
# Eg in nginx: fastcgi_pass unix:/www-data/clicon_restconf.sock;
|
||||
CLICON_RESTCONF_PATH /www-data/fastcgi_restconf.sock
|
||||
|
|
|
|||
|
|
@ -32,3 +32,7 @@ CLICON_USE_STARTUP_CONFIG 0
|
|||
# XMLDB datastore plugin filename (see datastore/ and clixon_xml_db.[ch])
|
||||
CLICON_XMLDB_PLUGIN /usr/local/lib/xmldb/text.so
|
||||
#CLICON_XMLDB_PLUGIN /usr/local/lib/xmldb/keyvalue.so
|
||||
|
||||
# Set to 0 if you want CLI to wrap to next line.
|
||||
# Set to 1 if you want CLI to scroll sideways when approaching right margin
|
||||
CLICON_CLI_LINESCROLLING 0
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue