aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRose Hogenson <rosehogenson@posteo.net>2024-01-12 08:47:02 -0800
committerRose Hogenson <rosehogenson@posteo.net>2024-01-12 08:47:02 -0800
commitb0e2ef021ce6f9c157356b896cf089b029cf8c2b (patch)
tree1a34f22d92d95c8575f3c06dfe779d36ae95e40c
parent8fd566044e3a18110161f429a06df9dbb779815b (diff)
downloadeditor-b0e2ef021ce6f9c157356b896cf089b029cf8c2b.tar.zst
Support the delete key.
For now it's exactly the same as backspace.
-rw-r--r--src/term.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/term.rs b/src/term.rs
index 9cbf354..e390125 100644
--- a/src/term.rs
+++ b/src/term.rs
@@ -171,6 +171,10 @@ impl Reader {
"6~" => {
return Ok(Key::PgDn);
}
+ "3~" => {
+ // Backspace
+ return Ok(Key::Byte(8));
+ }
_ => {
continue;
}