Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 10 Jul 2002 12:15:12 +0200 (CEST)
From:      marcov@stack.nl (Marco van de Voort)
To:        freebsd-hackers@freebsd.org
Subject:   Error in keyboard(4) manpage, off by one
Message-ID:  <20020710101512.360DA98D1@toad.stack.nl>

next in thread | raw e-mail | index | archive | help

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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020710101512.360DA98D1>