From owner-freebsd-questions Mon Nov 27 11:57:02 1995 Return-Path: owner-questions Received: (from root@localhost) by freefall.freebsd.org (8.6.12/8.6.6) id LAA23526 for questions-outgoing; Mon, 27 Nov 1995 11:57:02 -0800 Received: from casparc.ppp.net (casparc.ppp.net [194.64.12.35]) by freefall.freebsd.org (8.6.12/8.6.6) with SMTP id LAA23517 for ; Mon, 27 Nov 1995 11:56:57 -0800 Received: from ernie by casparc.ppp.net with uucp (Smail3.1.28.1 #1) id m0tK9Ha-000I5hC; Mon, 27 Nov 95 20:32 MET Received: by ernie.altona.hamburg.com (Smail3.1.29.1 #3) id m0tK8ku-00001cC; Mon, 27 Nov 95 19:58 MET Message-Id: From: hm@altona.hamburg.com (Hellmuth Michaelis) Subject: Re: PCVT -- ^H To: chuckr@glue.umd.edu (Chuck Robey) Date: Mon, 27 Nov 1995 19:58:20 +0100 (MET) Cc: FreeBSD-Questions@FreeBSD.ORG In-Reply-To: from "Chuck Robey" at Nov 24, 95 03:37:39 pm Reply-To: hm@altona.hamburg.com X-Mailer: ELM [version 2.4 PL24] Content-Type: text Content-Length: 2076 Sender: owner-questions@FreeBSD.ORG Precedence: bulk >From the keyboard of Chuck Robey: > I want to map my PCVT keyboard so that the erase key gives ^H, and the > delete key gives the delete code, 0x7f. I read all the docs, I think > maybe I can do this through the keycap utility, You can. I do not quite understand, what you want to do (all my US-ASCII keyboards don't have an 'erase' key), but perhaps the following example of two example entries to /usr/share/misc/keycap.pcvt might illustrate the way to go: x1|BS1|map backspace key to (0x7f), SHIFT-BS and CTRL-BS to (0x08) :\ :K15=\177:S15=\010:C15=\010: x2|BS2|map backspace key to (0x08), SHIFT-BS and CTRL-BS to (0x7f) :\ :K15=\010:S15=\177:C15=\177: > but I can't find anywhere > a mapping between physical positions on a standard (IBM) style keyboard > and the codes that it issues. I can see the mapping, and how to do it, > once I can determine this; it's pretty obvious to do this for the > function keys, but I am wondering if there's a graphic anywhere to aid in > this mapping, or if anyone simply knows the mapping for those two keys? Some years ago, when the keyboards where quite a bit more expensive than today, one could get sort of a technical reference manual with all the machines (i have a good graphical representation from an HP Vectra tech ref manual and from a Kyocera tech ref manual and several more) that were sold. A not so good representation can be found in: The Programmers PC Source Book, by Tom Hogan, Microsoft Press (mine is 2nd ed. 1991) on page 7-18 and 7-19. > Such a mapping table seems to be a glaring omission for a utility that is > intended to support mapping. It renders much of the capability valueless, > except for function key mapping. If there was such a mapping, I'd > volunteer to make a nice mapping file, using ascii mapping characters (no > graphical). Ha ! Finally ! :-) I'm waiting ...... :-) hellmuth -- Hellmuth Michaelis hm@altona.hamburg.com Hamburg, Europe (A)bort, (R)etry, (I)nstall BSD ?