diff options
author | dzwdz | 2021-10-15 16:51:05 +0200 |
---|---|---|
committer | dzwdz | 2021-10-15 16:51:05 +0200 |
commit | d994f9517785aeba4a07ec8c4aecf6d5d969ab97 (patch) | |
tree | c35d25e707ba08cd9659dae42f992381ac7bacee /src | |
parent | d5027bff5005ba1b4b92f64bebeea673fd538523 (diff) |
init/readline: stop reading on \n
Diffstat (limited to 'src')
-rw-r--r-- | src/init/shell.c | 1 |
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'; |