From owner-freebsd-questions@FreeBSD.ORG Thu Dec 16 11:22:58 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 98CE316A4CE for ; Thu, 16 Dec 2004 11:22:58 +0000 (GMT) Received: from smtp.io.com (smtp.io.com [206.224.87.28]) by mx1.FreeBSD.org (Postfix) with ESMTP id 322A943D2F for ; Thu, 16 Dec 2004 11:22:58 +0000 (GMT) (envelope-from eighner@io.com) Received: from io.com (aus-as1-80.io.com [199.170.90.80]) by smtp.io.com (8.13.1/8.13.1) with SMTP id iBGBMu0k035883; Thu, 16 Dec 2004 05:22:56 -0600 (CST) (envelope-from eighner@io.com) Date: Thu, 16 Dec 2004 05:19:07 -0600 (CST) From: Lars Eighner To: John Conover In-Reply-To: <20041216081743.18047.qmail@rahul.net> Message-ID: <20041216051235.P89125@goodwill.io.com> References: <20041215214746.5288.qmail@rahul.net> <20041216081743.18047.qmail@rahul.net> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Virus-Scanned: ClamAV 0.80/617/Sun Dec 5 09:25:39 2004 clamav-milter version 0.80j on smtp.io.com X-Virus-Status: Clean cc: freebsd-questions@freebsd.org Subject: Re: ALT key on console25? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 16 Dec 2004 11:22:58 -0000 On Thu, 16 Dec 2004, John Conover wrote: > Doing the following: > > mymachine# egrep 014 /usr/share/syscons/keymaps/us.iso.kbd > 014 bs bs del del bs bs del del O > mymachine# kbdcontrol -l /usr/share/syscons/keymaps/us.iso.kbd > > should set the backspace and shift backspace key sequence to rub out > the character before the cursor on the command line, (it does,) and > ctrl-backspace to delete the character under the cursor; it doesn't. > > The problem is that del = bs, so if /etc/defaults/rc.conf has: > > keymap="us.iso.kbd" > > then scan code 103, (the Delete key on a US 104 key keyboard,) will be > a backspace key, and there will be no Delete key. > > Note that if: > > keymap="NO" > > the backspace and Delete keys work as they should. But if a keymap is > specified, (say, perhaps to map the Alt keys,) then you can't have a > Delete key. > > How do you work around del = bs in the keymaps? The ANSI code for the stand-alone (not keypad) delete key is ESC-[-E. You should get that with fkey61. "del" should give you ^? If the cons is sending those, it is an application problem (including the shells as applications). Most uniod applications need some individual adjustment to get them to handle a proper delete properly. -- Lars Eighner eighner@io.com -finger for geek code- http://www.io.com/~eighner/index.html 8800 N IH35 APT 1191 AUSTIN TX 78753-5266