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

Up/down arrows do not process over UART #29

Open
mcknly opened this issue Oct 31, 2024 · 0 comments
Open

Up/down arrows do not process over UART #29

mcknly opened this issue Oct 31, 2024 · 0 comments

Comments

@mcknly
Copy link
Owner

mcknly commented Oct 31, 2024

The up/down arrows do not work to trigger the command history feature when using CLI over UART, however they do work with CLI over USB. It is believed that is because more bytes are buffered over USB, whereas with UART only a single byte is buffered/services at a time. This means that if multiple bytes are sent in series and the CLI task does not service them fast enough, they will be dropped. Up/down arrows use escape codes that are 3 bytes long, so instead of receiving \033[A (or ESC followed by ASCII [A) for example up arrow, the CLI will only receive and echo back the last byte A.

It may be possible to fix this with changes to RTOS task scheduling, otherwise may need to implement a multi-byte buffer for the CLI UART.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant