You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by ac...@apache.org on 2023/03/17 15:01:03 UTC

[nuttx-apps] branch master updated: bas: Don't ECHO input in repl

This is an automated email from the ASF dual-hosted git repository.

acassis pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx-apps.git


The following commit(s) were added to refs/heads/master by this push:
     new 4b1d59d40 bas: Don't ECHO input in repl
4b1d59d40 is described below

commit 4b1d59d40dfcd23ed3690cc7202ed32f3ac5fa14
Author: Huang Qi <hu...@xiaomi.com>
AuthorDate: Sat Mar 11 00:28:29 2023 +0800

    bas: Don't ECHO input in repl
    
    Signed-off-by: Huang Qi <hu...@xiaomi.com>
---
 interpreters/bas/bas_fs.c | 21 ---------------------
 1 file changed, 21 deletions(-)

diff --git a/interpreters/bas/bas_fs.c b/interpreters/bas/bas_fs.c
index 534047c55..f8c7a8402 100644
--- a/interpreters/bas/bas_fs.c
+++ b/interpreters/bas/bas_fs.c
@@ -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;