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

process_console: Handle DEL char as backspace #2974

Merged
merged 1 commit into from Feb 23, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion capsules/src/process_console.rs
Expand Up @@ -920,7 +920,7 @@ impl<'a, A: Alarm<'a>, C: ProcessManagementCapability> uart::ReceiveClient
self.execute.set(true);
let _ = self.write_bytes(&['\r' as u8, '\n' as u8]);
}
} else if read_buf[0] == ('\x08' as u8) {
} else if read_buf[0] == ('\x08' as u8) || read_buf[0] == ('\x7F' as u8) {
if index > 0 {
// Backspace, echo and remove last byte
// Note echo is '\b \b' to erase
Expand Down