Skip to content

Commit

Permalink
Fixed delete key
Browse files Browse the repository at this point in the history
  • Loading branch information
george-cosma committed Aug 25, 2023
1 parent 2c62ebf commit 4aa4775
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/serial_interface.rs
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,9 @@ pub async fn write_to_serial(
console::Key::Tab => Some("\t".into()),
console::Key::BackTab => Some("\t".into()),
console::Key::Alt => None,
console::Key::Del => Some("\x7f".into()),
// In latest version of kernel (2023.08.25), the "del" ascii code (\x7F)
// is handled exactly as backspace (\x08). Proper del is this:
console::Key::Del => Some("\u{1B}[3~".into()),
console::Key::Shift => None,
console::Key::Insert => None,
console::Key::PageUp => None,
Expand Down

0 comments on commit 4aa4775

Please sign in to comment.