summaryrefslogtreecommitdiff
path: root/src/init
diff options
context:
space:
mode:
authordzwdz2021-10-15 16:51:05 +0200
committerdzwdz2021-10-15 16:51:05 +0200
commitd994f9517785aeba4a07ec8c4aecf6d5d969ab97 (patch)
treec35d25e707ba08cd9659dae42f992381ac7bacee /src/init
parentd5027bff5005ba1b4b92f64bebeea673fd538523 (diff)
init/readline: stop reading on \n
Diffstat (limited to 'src/init')
-rw-r--r--src/init/shell.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/init/shell.c b/src/init/shell.c
index 130ae79..9510e0d 100644
--- a/src/init/shell.c
+++ b/src/init/shell.c
@@ -26,6 +26,7 @@ static int readline(char *buf, size_t max) {
pos--;
}
break;
+ case '\n':
case '\r':
printf("\n");
buf[pos++] = '\0';