From owner-freebsd-bugs@FreeBSD.ORG Fri Nov 12 15:30:13 2010 Return-Path: Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B80521065674 for ; Fri, 12 Nov 2010 15:30:13 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 8AE108FC18 for ; Fri, 12 Nov 2010 15:30:13 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id oACFUDI9049773 for ; Fri, 12 Nov 2010 15:30:13 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id oACFUD3D049768; Fri, 12 Nov 2010 15:30:13 GMT (envelope-from gnats) Date: Fri, 12 Nov 2010 15:30:13 GMT Message-Id: <201011121530.oACFUD3D049768@freefall.freebsd.org> To: freebsd-bugs@FreeBSD.org From: crocket Cc: Subject: Re: misc/152162: On syscons, pressing delete key results in pressing backspace. X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: crocket List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 12 Nov 2010 15:30:13 -0000 The following reply was made to PR misc/152162; it has been noted by GNATS. From: crocket To: bug-followup@FreeBSD.org Cc: Subject: Re: misc/152162: On syscons, pressing delete key results in pressing backspace. Date: Fri, 12 Nov 2010 07:26:02 -0800 (PST) I made us.iso.mod.kbd in /usr/share/syscons/keymaps and set both 083(Del key on the keypad) and 103(Delete key) to fkey65 and 014 to del(ASCII DEL) in us.iso.mod.kbd. I chose fkey65 because it's the first function key not used by default on FreeBSD. After that, I added keychanges="65 \E[3~" and keymap="us.iso.mod" in /etc/rc.conf and rebooted. With """JUST""" "bindkey \E[3~ delete-char" in /etc/csh.cshrc, csh deletes characters to the right in both syscons and X11 terminal emulators. In case of bash, you would add a similar setting.(I haven't tried bash) I think 014(backspace key on the keyboard) shouldn't match ASCII BS so that applications are free to use Ctrl-H(=ASCII BS). A detailed rationale for all of those above is elaborated in http://www.ibb.net/~anne/keyboard.html It's just a quick hack to match the keyboard behaviors in syscons and X11 terminal emulators so that delete key deletes a character to the right. So I want to see two things incorporated in the next release of FreeBSD(9.0-RELEASE?) 1) fkey65 set to \E[3~ by default 2) a new keymap based on us.iso.kbd or something similar that matches 083 and 103 to fkey65 and matches 014 to del.