shell: avoid printing stdio input
This commit is contained in:
parent
db3de90f24
commit
28d9f1df99
1 changed files with 0 additions and 3 deletions
|
@ -22,8 +22,6 @@ static char *prompt(const char *prefix)
|
|||
return NULL;
|
||||
|
||||
while ((c = getchar()) && c != '\n') {
|
||||
putchar(c);
|
||||
|
||||
if (nbytes + 1 >= nalloc_bytes) {
|
||||
nalloc_bytes *= 2;
|
||||
|
||||
|
@ -36,7 +34,6 @@ static char *prompt(const char *prefix)
|
|||
line[nbytes++] = c;
|
||||
}
|
||||
|
||||
printf("\n");
|
||||
line[nbytes] = '\0';
|
||||
|
||||
return line;
|
||||
|
|
Loading…
Add table
Reference in a new issue