You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Reproduction steps:
1 Boot
2 Keep a arrow key down.
3 After some time, I get a
"Command not found
Could not load file: 000004B0" (or whatever address, seems to be in the low memory though)
Somebody can reproduce ?
The text was updated successfully, but these errors were encountered:
I think this is not so much an overflow as the system hitting the limit on the line size in the command line. sys_chan_readline takes a maximum size and treats anything over that limit as forcing a carriage return. Two things could (should?) happen here: one is for arrow key escape sequences to be caught and ignored/handled... and the other might be to keep reading keys until the CR but alert the user if the line length has been exceeded (and ignore those extra keypresses).
We could handle better the keys from the CLI. Readline could safely ignore up/down I suppose.
The CLI could also intercept keystrokes and handle things itself, so we can e.g. provide autocompletion later. For now I could just:
ignore up/down,
ignore "left" if the cursor position if = strlen(prompt)+1 to prevent writting above the prompt,
ignore right" if the cursor is already near the right border (max column number). That will limit the size of command line but it's should be good enough.
Later we can manage command history and use up/down to browse it.
Reproduction steps:
1 Boot
2 Keep a arrow key down.
3 After some time, I get a
"Command not found
Could not load file: 000004B0" (or whatever address, seems to be in the low memory though)
Somebody can reproduce ?
The text was updated successfully, but these errors were encountered: