add support for DEL key and the macOS way of deleting chars default tip

Thu, 23 Apr 2026 12:26:53 +0200

author
Mike Becker <universe@uap-core.de>
date
Thu, 23 Apr 2026 12:26:53 +0200
changeset 112
6220074cb760
parent 111
82e3f259dbb8

add support for DEL key and the macOS way of deleting chars

fixes #830

src/input.c file | annotate | diff | comparison | revisions
--- a/src/input.c	Thu Apr 23 10:09:36 2026 +0200
+++ b/src/input.c	Thu Apr 23 12:26:53 2026 +0200
@@ -56,6 +56,8 @@
             *pos = 0;
             waddch(w,'\n');
             return 1;
+        case 127: /* ASCII DEL (important for macOS) */
+        case KEY_DC: /* DEL key (for other OS) */
         case KEY_BACKSPACE:
         case KEY_LEFT:
             if ((*pos) > 0) {

mercurial