From owner-freebsd-hackers Wed Jul 10 3:15:16 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 720D437B400 for ; Wed, 10 Jul 2002 03:15:14 -0700 (PDT) Received: from mailhost.stack.nl (vaak.stack.nl [131.155.140.140]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8767243E54 for ; Wed, 10 Jul 2002 03:15:13 -0700 (PDT) (envelope-from marcov@stack.nl) Received: from toad.stack.nl (toad.stack.nl [2001:610:1108:5010:202:b3ff:fe17:9e1a]) by mailhost.stack.nl (Postfix) with ESMTP id 83FFA3F8F for ; Wed, 10 Jul 2002 12:15:12 +0200 (CEST) Received: by toad.stack.nl (Postfix, from userid 816) id 360DA98D1; Wed, 10 Jul 2002 12:15:12 +0200 (CEST) Subject: Error in keyboard(4) manpage, off by one To: freebsd-hackers@freebsd.org Date: Wed, 10 Jul 2002 12:15:12 +0200 (CEST) X-Mailer: ELM [version 2.4ME+ PL88 (25)] MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII Message-Id: <20020710101512.360DA98D1@toad.stack.nl> From: marcov@stack.nl (Marco van de Voort) Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG The keyboard(4) manpage is a bit vague about the numbering convention for thefunction keys (that generate multi byte escape) SETFKEY ioctl and in the keymap structure. The problem is that the C-level routines (SETFKEY, GETFKEY macro's, indices in the KEYMAP structure) are 0 based. (first function key is 0, last is 95), while the kbdcontrol unit numbers them 1..96. The manpage seems to imply that the numbering is 1..96 for both the C programming interface as the kbdcontrol utility. kbdcontrol seems to deal with this ok. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message