mirror of
https://github.com/apache/nuttx-apps.git
synced 2026-08-09 22:45:11 +00:00
bas: Don't ECHO input in repl
Signed-off-by: Huang Qi <huangqi3@xiaomi.com>
This commit is contained in:
parent
503b4ccf82
commit
4b1d59d40d
1 changed files with 0 additions and 21 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue