From b06cab286ce7b540c7bf5caa19bf6d4fe149d0b4 Mon Sep 17 00:00:00 2001 From: jmug Date: Tue, 27 Oct 2026 00:57:09 -0700 Subject: [PATCH] feat: Parse DEL key, does not do anything yet. --- kilo.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/kilo.c b/kilo.c index af54aae..4aab08f 100644 --- a/kilo.c +++ b/kilo.c @@ -21,6 +21,7 @@ enum editorKey { ARROW_RIGHT, ARROW_UP, ARROW_DOWN, + DEL_KEY, HOME_KEY, END_KEY, PAGE_UP, @@ -104,6 +105,7 @@ int editorReadKey() { // not sent as a page up/dow. Because it can mess up system keybindings. switch (seq[1]) { case '1': return HOME_KEY; + case '3': return DEL_KEY; case '4': return END_KEY; case '5': return PAGE_UP; case '6': return PAGE_DOWN;