bas: Don't ECHO input in repl

Signed-off-by: Huang Qi <huangqi3@xiaomi.com>
This commit is contained in:
Huang Qi 2023-03-11 00:28:29 +08:00 committed by Alan Carvalho de Assis
parent 503b4ccf82
commit 4b1d59d40d

View File

@ -307,27 +307,6 @@ static int edit(int chn, int nl)
FS_putChar(chn, '^');
FS_putChar(chn, ch ? (ch + 'a' - 1) : '@');
}
/* Output normal, printable characters */
else
{
FS_putChar(chn, ch);
}
}
/* It is a newline */
else
{
/* Echo the newline (or not). We always use newline
* termination when talking to the host.
*/
if (nl)
{
FS_putChar(chn, '\n');
}
}
f->inBuf[f->inCapacity++] = ch;