diff --git a/console.c b/console.c
index e2860738e..61c697e04 100644
--- a/console.c
+++ b/console.c
@@ -627,8 +627,12 @@ static int cmd_select(int nfds,
"
\n";
web_send(web_connfd, buffer);
- if (p)
+ if (p) {
+ printf("\rweb> %s\n", p);
+ fflush(stdout);
interpret_cmd(p);
+ }
+
free(p);
close(web_connfd);
}
diff --git a/report.c b/report.c
index 11b4de21b..fed95c938 100644
--- a/report.c
+++ b/report.c
@@ -123,9 +123,7 @@ void report(int level, char *fmt, ...)
va_end(ap);
}
if (web_connfd) {
- int len = strlen(buffer);
- buffer[len] = '\n';
- buffer[len + 1] = '\0';
+ strcat(buffer, "
");
web_send(web_connfd, buffer);
}
}