From owner-freebsd-questions@FreeBSD.ORG Wed Mar 2 00:25:53 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 2FCD816A4CE for ; Wed, 2 Mar 2005 00:25:53 +0000 (GMT) Received: from blackwater.lemis.com (wantadilla.lemis.com [192.109.197.135]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9D38F43D54 for ; Wed, 2 Mar 2005 00:25:51 +0000 (GMT) (envelope-from grog@lemis.com) Received: by blackwater.lemis.com (Postfix, from userid 1004) id 6FCE98568D; Wed, 2 Mar 2005 10:55:49 +1030 (CST) Date: Wed, 2 Mar 2005 10:55:49 +1030 From: Greg 'groggy' Lehey To: Alejandro Pulver Message-ID: <20050302002549.GX73162@wantadilla.lemis.com> References: <20050301194338.3a49611d@ale.varnet.bsd> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="E0IhBwMLbrMClE+H" Content-Disposition: inline In-Reply-To: <20050301194338.3a49611d@ale.varnet.bsd> User-Agent: Mutt/1.4.2.1i Organization: The FreeBSD Project Phone: +61-8-8388-8286 Fax: +61-8-8388-8725 Mobile: +61-418-838-708 WWW-Home-Page: http://www.FreeBSD.org/ X-PGP-Fingerprint: 9A1B 8202 BCCE B846 F92F 09AC 22E6 F290 507A 4223 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: Wed, 02 Mar 2005 00:25:53 -0000 --E0IhBwMLbrMClE+H Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Tuesday, 1 March 2005 at 19:43:38 -0300, Alejandro Pulver wrote: > Hello, > > I have a PS/2 PC-101 keyboard. > > I would like to use my META (ALT in my keyboard) key instead of ESC in > console mode. META works fine in an xterm. I also would like to use DEL > and others. > > [description omitted] There's a special key map for Emacs. Try this: 1. To test it, do: kbdcontrol -l /usr/share/syscons/keymaps/us.emacs.kbd 2. To have it set automatically on boot, put this in your /etc/rc.conf: keymap=us.emacs.kbd > 2) Some strange thing happens with Emacs in console mode: when I press > DEL, it is interpreted (literally) as C-h, and C-h is used as > BACKSPACE. It's not clear which keys you're talking about here, nor which codes they're really generating. If you still have problems, please clarify. > And C-d acts as DEL. That doesn't sound very likely, though I haven't played around with the termcap entries. > 3) Also DEL does not do anything in xterm. In X, try running xev to see what it's really generating. Greg -- When replying to this message, please copy the original recipients. If you don't, I may ignore the reply or reply to the original recipients. For more information, see http://www.lemis.com/questions.html See complete headers for address and phone numbers. --E0IhBwMLbrMClE+H Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.6 (FreeBSD) iD8DBQFCJQgNIubykFB6QiMRAopSAJ9syK0A0+CMI/WqruPnt0JUIej26gCfZcYB Z0tTa3TDBejIZ2xxz0hipBo= =wHyV -----END PGP SIGNATURE----- --E0IhBwMLbrMClE+H--