Debian Codegraph @

console-client/xkb/README

raw
1 -- Some random notes about the XKB module. --
2
3 This XKB module used by the pc_kbd input driver can load XKB configuration
4 files. XKB configuration files, the keymap files currently used in XFree,
5 are very versatile.
6
7 One of the biggest advantages of using XKB configurations is that both
8 the Hurd and XFree work similarly. Another advantage is that it has many
9 features:
10
11 * Human readable configuration files with mechanisms like include
12 files, replacing keys, etc.
13
14 * Many shift levels, all configurable per key type.
15
16 * Support for four groups. These groups can be used for things like
17 additional alphabets.
18
19 * Accessibility features like SlowKeys, StickyKeys, etc.
20
21 * Dynamic behaviour; the user can define how all keys and indicators operate.
22
23
24 Most support for basic operation have been implemented. Still there
25 are many things not implemented. If some of these things are really
26 important to you, please tell me!
27
28 List of not implemented XKB features:
29
30 * Accessibility and software repeat.
31 * Jukebox support (user configurable audible messages)
32 * Key database; loading new keynames from the X key database.
33 * Error handling; partially done.
34 * Indicators (Keyboard LEDs, etc.) not working, partially implemented.
35 * ISOLock not implemented.
36 * No support for non UTF-8 locales.
37 * No support for rarely used features (Many of they don't even work in
38 X AFAIK).
39 * Many other stuff doesn't work (lock, radio group, overlays, etc.).
40 If I forgot something important, please report it :)
41
42 * The scanner and parser are still ugly and far from optimal!
43
44 ---
45
46 Installation:
47
48 This XKB module is an optional feature of pc-kbd input driver. Whether
49 it is compiled in or not is defined by the precense of XKB_SUPPORT
50 preprocessor symbol.
51
52 In addition to the usual Hurd dependencies, you need yacc and lex
53 programs to generate the scanner and parser.
54
55 --
56
57 Using it:
58
59 To use it you need XKB configuration files. These are included with
60 XFree and will be placed in /share/X11/xkb on most systems.
61
62 This module adds the following set of options to pc-kbd for overriding
63 the default behaviour:
64
65 --model : model of the keyboard (usually pc105).
66
67 --layout : The layout of the keyboard (us, fr, it, etc).
68
69 --variant : The variant of layout to use (latin9, dvorak, etc).
70
71 --options : The options to pass to xkbcommon.
72
73 --composefile : The compose file to use for key composition in the keyboard (ctrl, alt, etc).
74
75 --ctrlaltbs : CTRL+Alt+Backspace will exit the console client.
76 --no-ctrlaltbs : CTRL+Alt+Backspace will not exit the console client.
77
78 --repeat-delay : The number of jiffies the driver should wait before
79 starting to repeat keys. By default this is 50 jiffies.
80
81 --repeat-interval : The number of jiffies the driver should wait
82 between each repeated key. By default this is 10 jiffies.
83
84 After that you can use these keybindings:
85
86 Alt + F1...F12: Switch VC.
87
88 Alt + Left, Right: Switch to the console left or right of the current
89 console.
90
91 Alt + Up, Down: Scroll the console by one line up or down.
92 Ctrl + PgUp, PgDown: Scroll the console up or down with 1/2 screen.
93
94 Alt + Home: Scroll the console to the 0% of the scrollback buffer.
95 Ctrl + Home: Scroll the console to the 25% of the scrollback buffer.
96 Alt + End: Scroll the console to the 100% of the scrollback buffer.
97 Alt + End: Scroll the console to the 75% of the scrollback buffer.
98
99 --
100
101 Hurd features:
102
103 If you want to use the Hurd features yourself make sure you put the
104 changes in files that are not used by Xfree because it cannot parse
105 these options. See how I did it for the configuration described in the
106 previous paragraph.
107
108 Function list:
109
110 --
111 ConsScroll: scroll the console x lines or to a fixed position.
112
113 parameters:
114 Screen = pos : Scroll to screen #pos.
115 Screen += i : Scroll i screens up.
116 Screen -= i : Scroll i screens down.
117 line = pos : Scroll to line #pos.
118 line += i : Scroll i lines up.
119 line -= i : Scroll i lines down.
120 percent = percentage : Scroll to PERCENTAGE % of the scrollback
121 buffer.
122
123 Example:
124 ConsScroll (screen += 0.5) --> Scroll down a 1/2 screen.
125
126 --
127 SwitchScreen: Switch to a VC.
128
129 paramaters:
130 screen = i : Switch to VC #i.
131 screen += i : Switch to #i consoles to the right.
132 screen -= i : Switch to #i consoles to the left.
133
134 sameserver is a flag that will be added. I want to use it to switch to
135 external consoles like X servers and SVGALib screens.
136
137 example:
138 SwitchScreen (screen += 1) --> Switch to the console right of the
139 current console.
140
141
142 --
143 More functions will be added. One to send keysyms to other VCs (can be
144 useful to control a mixer, ogg vorbis player, etc.). It should also
145 be capable of inserting often used strings like "apfelkorn" :).
146
147 A function to call the configuration dialog should be added.
148
149 Functions to execute things should be added. Think about binding the
150 reboot command to Ctrl+Alt+Delete for example. Wolfgang also asked me
151 for scheme support, but I don't know enough about scheme to know what
152 cool stuff is possible with this (I don't know scheme... Hey! Not
153 everyone can be perfect ;)).
154
155 Perhaps functions can be added to control the console client in other
156 ways.
157
158 More ideas would be interesting to hear :)
159
160 --
161
162 Enjoy this stuff and please send me many bug reports :)
163
164 Marco Gerards
165 ([email protected])