This patch for mg is suggested by the debian team to add support for the del key. Seems like a nobrainer and also works in OpenBSD.
Sorry for the long message but I want to give credit where credit is due. ----- Forwarded message from "Trent W. Buck" <[email protected]> ----- Date: Thu, 8 Mar 2012 11:14:46 +1100 From: "Trent W. Buck" <[email protected]> To: Han Boetes <[email protected]> Subject: Re: mg: The Delete key should delete the character to the right of the cursor Han, How do you feel about applying this change upstream (of me/Debian)? Ref. http://bugs.debian.org/661732 Date: Wed, 29 Feb 2012 20:28:27 +0100 From: Peter De Wachter <[email protected]> To: Debian Bug Tracking System <[email protected]> Subject: Bug#661732: mg: The Delete key should delete the character to the right of the cursor Currently mg doesn't have a binding for the Delete key. Debian Policy 9.8 says that it should. The attached two-line patch fixes this. --- mg-20110905.orig/ttykbd.c 2012-02-29 11:35:35.000000000 +0100 +++ mg-20110905/ttykbd.c 2012-02-29 12:25:59.521218562 +0100 @@ -55,6 +55,8 @@ dobindkey(fundamental_map, "scroll-up", key_npage); if (key_ppage) dobindkey(fundamental_map, "scroll-down", key_ppage); + if (key_dc) + dobindkey(fundamental_map, "delete-char", key_dc); #endif /* FKEYS */ #ifndef NO_STARTUP ----- End forwarded message ----- # Han
