The terminal was not correctly resetted when CTRL+d was pressed. The result was that reset has to be called from shell after exit. Signed-off-by: Eric Leblond <eric@xxxxxxxxx> --- src/cli.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/cli.c b/src/cli.c index 541c26c..8875207 100644 --- a/src/cli.c +++ b/src/cli.c @@ -90,8 +90,11 @@ static void cli_complete(char *line) LIST_HEAD(msgs); line = cli_append_multiline(line); - if (line == NULL) + if (line == NULL) { + printf("\n"); + cli_exit(); return; + } for (c = line; *c != '\0'; c++) if (!isspace(*c)) -- 1.7.10.4 -- To unsubscribe from this list: send the line "unsubscribe netfilter-devel" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html