From 1a0f614dd29f8666647e005c63ae00b3638234d4 Mon Sep 17 00:00:00 2001 From: Quentin Young Date: Wed, 12 Jul 2017 14:40:18 -0400 Subject: lib, vtysh: pretty-print variable autocompletions Pretty-prints variable autocompletions by breaking them up into multiple lines, indenting them consistently and respecting the column width of the terminal. Signed-off-by: Quentin Young --- lib/command.h | 1 + 1 file changed, 1 insertion(+) (limited to 'lib/command.h') diff --git a/lib/command.h b/lib/command.h index 927c04006c..781387b5e6 100644 --- a/lib/command.h +++ b/lib/command.h @@ -404,5 +404,6 @@ struct cmd_variable_handler { extern void cmd_variable_complete (struct cmd_token *token, const char *arg, vector comps); extern void cmd_variable_handler_register (const struct cmd_variable_handler *cvh); +extern char *cmd_variable_comp2str (vector comps, unsigned short cols, const char nl[]); #endif /* _ZEBRA_COMMAND_H */ -- cgit v1.2.3