summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlum <lum@cvs.openbsd.org>2012-03-28 17:35:04 +0000
committerlum <lum@cvs.openbsd.org>2012-03-28 17:35:04 +0000
commitb3da694620af880e4d6f71c3c80f49f2cc29faab (patch)
tree6216627af6842592711c55b0fcc5ee1664091c81
parente7467d86d0219d28df8ee45461b26b2ff133b7a2 (diff)
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@
-rw-r--r--usr.bin/mg/ttykbd.c4
1 files changed, 3 insertions, 1 deletions
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