From b3da694620af880e4d6f71c3c80f49f2cc29faab Mon Sep 17 00:00:00 2001 From: lum Date: Wed, 28 Mar 2012 17:35:04 +0000 Subject: The Delete key should delete the character to the right of the cursor. Posted to tech@ by Han Boetes from a bug report submitted to debian by Peter De Wachter (Bug#661732), via Trent W. Buck. No objections from tech@ --- usr.bin/mg/ttykbd.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'usr.bin/mg/ttykbd.c') diff --git a/usr.bin/mg/ttykbd.c b/usr.bin/mg/ttykbd.c index 5e47989380e..fad9079f77c 100644 --- a/usr.bin/mg/ttykbd.c +++ b/usr.bin/mg/ttykbd.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ttykbd.c,v 1.14 2005/06/14 18:14:40 kjell Exp $ */ +/* $OpenBSD: ttykbd.c,v 1.15 2012/03/28 17:35:03 lum Exp $ */ /* This file is in the public domain. */ @@ -55,6 +55,8 @@ ttykeymapinit(void) 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 -- cgit v1.2.3