Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

system/cu: remove canonical input mode from termios flag #2968

Merged
merged 2 commits into from
Jan 23, 2025

Conversation

anchao
Copy link
Contributor

@anchao anchao commented Jan 22, 2025

Summary

| 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 in order to again bring back support backspace in cu.

Signed-off-by: chao an [email protected]

Impact

CU: Backspace works again on cu / nsh console.

Testing

sim/rpproxy sim/rpserver cu and check the backspace whether works as expected.

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]>
$ ../nuttx/tools/checkpatch.sh -g HEAD~1
apps/system/cu/cu_main.c:5:78: error: Long line found

Signed-off-by: chao an <[email protected]>
Copy link

@cederom cederom left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you @anchao :-)

@anchao
Copy link
Contributor Author

anchao commented Jan 23, 2025

Thank you @anchao :-)

@cederom Thank you for polishing the comments

@xiaoxiang781216 xiaoxiang781216 merged commit 2ad162d into apache:master Jan 23, 2025
37 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants