Hi,
Add the ANSI sequence "\E[P" for the delete control function (as
described in table 4-5 in [1], "Delete Character") to the x_defbindings
array in edit.c. This sequence is generated by default for the delete
key by some terminal emulators (st for example).
[1] http://vt100.net/docs/vt510-rm/chapter4
Thanks,
--
Ivan "Colona" Delalande
Index: edit.c
===================================================================
RCS file: /cvs/src/bin/mksh/edit.c,v
retrieving revision 1.285
diff -u -r1.285 edit.c
--- edit.c 29 Apr 2015 20:07:55 -0000 1.285
+++ edit.c 3 May 2015 00:56:35 -0000
@@ -1099,6 +1099,7 @@
{ XFUNC_mv_end | 0x80, 2, '8' },
{ XFUNC_mv_end, 2, 'F' },
{ XFUNC_del_char | 0x80, 2, '3' },
+ { XFUNC_del_char, 2, 'P' },
{ XFUNC_search_hist_up | 0x80, 2, '5' },
{ XFUNC_search_hist_dn | 0x80, 2, '6' },
/* more non-standard ones */