From owner-freebsd-questions@FreeBSD.ORG Sun Mar 6 17:09:28 2005 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 342B516A4CE for ; Sun, 6 Mar 2005 17:09:28 +0000 (GMT) Received: from relay.pair.com (relay00.pair.com [209.68.1.20]) by mx1.FreeBSD.org (Postfix) with SMTP id 60F7F43D31 for ; Sun, 6 Mar 2005 17:09:27 +0000 (GMT) (envelope-from alejandro@varnet.biz) Received: (qmail 22617 invoked from network); 6 Mar 2005 17:09:26 -0000 Received: from unknown (HELO ale.varnet.bsd) (unknown) by unknown with SMTP; 6 Mar 2005 17:09:26 -0000 X-pair-Authenticated: 200.115.214.206 Date: Sun, 6 Mar 2005 14:10:05 -0300 From: Alejandro Pulver To: Lars Eighner Message-ID: <20050306141005.57e017bb@ale.varnet.bsd> In-Reply-To: <20050303135450.H19517@goodwill.io.com> References: <20050301194338.3a49611d@ale.varnet.bsd> <20050301220822.F8622@goodwill.io.com> <20050303151945.07303710@ale.varnet.bsd> <20050303135450.H19517@goodwill.io.com> X-Mailer: Sylpheed-Claws 0.9.12b (GTK+ 1.2.10; i386-portbld-freebsd5.3) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit cc: freebsd-questions Subject: Re: Using META and DEL keys in console 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: Sun, 06 Mar 2005 17:09:28 -0000 On Thu, 3 Mar 2005 15:40:25 -0600 (CST) Lars Eighner wrote: > On Thu, 3 Mar 2005, Alejandro Pulver wrote: > > > Where is the (complete) list of scancodes and which keys produce > > them? > > > > If there is not, as I think, how can I know what scancode is > > produced by each key in my keyboard (a program, maybe)? > > As a practical matter, for the console keyboard I generally work > backwards from a known keymap (one of the distribution keymaps), > and cut and try. man 5 kbdmap lists all the values you can > assign to key combinations (note the "5" - otherwise you are > likely to get man 1 kbdmap by default). Notice that you can > use kbdmap or kbdcontrol to load a keymap to experiment with and > you do not have to reboot to see what happens. I find this > works very well with American PC keyboards where there are only > a handful of keys that are in doubt, even with fairly esoteric > models, like butterflies with two keypads. > > The distribution maps, after all, were not put together by crazy > people, so the unshifted values of most of the keys are pretty > logical. > [snipped] Your answer helped me much. Thanks and Best Regards, Ale