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

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

commit dfb3fc9acf54943216ab0be0658f1179108b132b
Author: chao an <anchao.arc...@bytedance.com>
AuthorDate: Wed Jan 22 22:37:08 2025 +0800

    system/cu: remove canonical input mode from termios flag
    
    ASCII_DEL will unable to handle after below change:
    https://github.com/apache/nuttx/pull/14037
    
    | commit df5c876932c4c82e8aee32adca651bb99d9d6200
    | Author: zhangwenjian <zhangwenj...@xiaomi.com>
    | Date:   Thu May 23 13:13:48 2024 +0800
    |
    |     libc:getline support backspace
    |
    |     Signed-off-by: zhangwenjian <zhangwenj...@xiaomi.com>
    
    remove canonical input mode to support backspace in cu
    
    Signed-off-by: chao an <anchao.arc...@bytedance.com>
---
 system/cu/cu_main.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/system/cu/cu_main.c b/system/cu/cu_main.c
index 2b8fabda1..a3a0f2d61 100644
--- a/system/cu/cu_main.c
+++ b/system/cu/cu_main.c
@@ -194,7 +194,7 @@ static int set_termios(FAR struct cu_globals_s *cu, int 
nocrlf)
 
       tio.c_iflag = 0;
       tio.c_oflag = 0;
-      tio.c_lflag &= ~ECHO;
+      tio.c_lflag &= ~(ECHO | ICANON);
 
       ret = tcsetattr(cu->stdfd, TCSANOW, &tio);
       if (ret)

Reply via email to