Skip to content

Commit dfb3fc9

Browse files
anchaoxiaoxiang781216
authored andcommitted
system/cu: remove canonical input mode from termios flag
ASCII_DEL will unable to handle after below change: apache/nuttx#14037 | commit df5c876932c4c82e8aee32adca651bb99d9d6200 | Author: zhangwenjian <[email protected]> | Date: Thu May 23 13:13:48 2024 +0800 | | libc:getline support backspace | | Signed-off-by: zhangwenjian <[email protected]> remove canonical input mode to support backspace in cu Signed-off-by: chao an <[email protected]>
1 parent 57c8a62 commit dfb3fc9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

system/cu/cu_main.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ static int set_termios(FAR struct cu_globals_s *cu, int nocrlf)
194194

195195
tio.c_iflag = 0;
196196
tio.c_oflag = 0;
197-
tio.c_lflag &= ~ECHO;
197+
tio.c_lflag &= ~(ECHO | ICANON);
198198

199199
ret = tcsetattr(cu->stdfd, TCSANOW, &tio);
200200
if (ret)

0 commit comments

Comments
 (0)