--- libaitcli/src/cli.c 2013/10/08 11:30:00 1.6.4.5 +++ libaitcli/src/cli.c 2013/10/08 12:01:59 1.6.4.6 @@ -3,7 +3,7 @@ * by Michael Pounov * * $Author: misho $ -* $Id: cli.c,v 1.6.4.5 2013/10/08 11:30:00 misho Exp $ +* $Id: cli.c,v 1.6.4.6 2013/10/08 12:01:59 misho Exp $ * ************************************************************************** The ELWIX and AITNET software is distributed under the following @@ -143,6 +143,7 @@ cli_Cmd_Config(void * __restrict cli_buffer, int idx, return RETCODE_ERR; buf->line_level++; + cli_Printf(buf, "Enter to config level %d\n", buf->line_level); return RETCODE_OK; } @@ -163,6 +164,7 @@ cli_Cmd_End(void * __restrict cli_buffer, int idx, cha return cli_Cmd_Exit(cli_buffer, idx, args); buf->line_level--; + cli_Printf(buf, "Enter to config level %d\n", buf->line_level); return RETCODE_OK; } @@ -180,6 +182,7 @@ cli_Cmd_Top(void * __restrict cli_buffer, int idx, cha linebuffer_t *buf = cli_buffer; buf->line_level ^= buf->line_level; + cli_Printf(buf, "Enter to top config level %d\n", buf->line_level); return RETCODE_OK; } @@ -196,6 +199,6 @@ cli_Cmd_WhereAmI(void * __restrict cli_buffer, int idx { linebuffer_t *buf = cli_buffer; - cli_Printf(buf, "Current console level is %d\n", buf->line_level); + cli_Printf(buf, "Current config level is %d\n", buf->line_level); return RETCODE_OK; }