1 dumpkeymap - Diagnostic dump and detailed description of .keymapping files
4 Copyright (C)1999,2000 by Eric Sunshine <sunshine@sunshineco.com>
5 Eric Sunshine, 1 December 2000
9 This package contains the diagnostic utility dumpkeymap, as well as highly
10 detailed documentation describing the internal layout of the Apple/NeXT
13 The dumpkeymap utility displays detailed information about each .keymapping
14 file mentioned on the command-line. On Apple and NeXT platforms, if no
15 .keymapping files are mentioned on the command-line, then it will instead
16 dissect the key mapping currently in use by the WindowServer and AppKit.
18 Documentation includes a thorough and detailed description of the internal
19 layout of the .keymapping file, as well as an explanation of how to interpret
20 the output of dumpkeymap.
22 The complete set of documentation is available for perusal via dumpkeymap's
23 manual page (dumpkeymap.1), as well as via the command-line options described
29 Detailed discussion of the internal format of a .keymapping file.
31 Explanation of dumpkeymap's output.
33 List of key mapping-related files and directories.
35 Explanation of diagnostic messages.
37 Once the manual page is been installed, documentation can also be accessed
38 with the Unix `man' command:
47 cc -Wall -o dumpkeymap dumpkeymap.c -framework IOKit
49 MacOS/X DP4 (Developer Preview 4)
51 cc -Wall -o dumpkeymap dumpkeymap.c -FKernel -framework IOKit
53 MacOS/X Server, OpenStep, NextStep
55 cc -Wall -o dumpkeymap dumpkeymap.c
57 By default, dumpkeymap is configured to interface with the HID driver (Apple)
58 or event-status driver (NeXT), thus allowing it to dump the key mapping which
59 is currently in use by the WindowServer and AppKit. However, these facilities
60 are specific to Apple/NeXT. In order to build dumpkeymap for non-Apple/NeXT
61 platforms, you must define the DUMPKEYMAP_FILE_ONLY flag when compiling the
62 program. This flag inhibits use of the HID and event-status drivers and
63 configures dumpkeymap to work strictly with raw key mapping files.
65 For example, to compile for Linux:
67 gcc -Wall -DDUMPKEYMAP_FILE_ONLY -o dumpkeymap dumpkeymap.c
72 Install the dumpkeymap executable image in a location mentioned in the PATH
73 environment variable. Typicall locations for executable files are:
78 Install the manual page, dumpkeymap.1, in the `man1' subdirectory one of the
79 standard manual page locations or in any other location mentioned by the
80 MANPATH environment variable.
82 Typical locations for manual pages on most Unix platforms are:
86 Typical locations for manual pages on MacOS/X, Darwin, and MacOS/X Server are:
89 /Local/Documentation/ManPages/man1
90 /Network/Documentation/ManPages/man1
92 Typical locations for manual pages on OpenStep and NextStep are:
95 /LocalLibrary/Documentation/ManPages/man1
96 /LocalDeveloper/Documentation/ManPages/man1
101 This program and its accompanying documentation were written by Eric Sunshine
102 and are copyright (C)1999,2000 by Eric Sunshine <sunshine@sunshineco.com>.
104 The implementation of dumpkeymap is based upon information gathered on
105 September 3, 1997 by Eric Sunshine <sunshine@sunshineco.com> and Paul S.
106 McCarthy <zarnuk@zarnuk.com> during an effort to reverse engineer the format
107 of the NeXT .keymapping file.
111 $XFree86: xc/programs/Xserver/hw/darwin/utils/README.txt,v 1.2 2000/12/05 21:18:34 dawes Exp $