1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
|
/*
Copyright (c) 2000, 2002 Stephen Montgomery-Smith
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions
are met:
1. Redistributions of source code must retain the above copyright
notice, this list of conditions and the following disclaimer.
2. Redistributions in binary form must reproduce the above copyright
notice, this list of conditions and the following disclaimer in the
documentation and/or other materials provided with the distribution.
3. Neither the name of Stephen Montgomery-Smith nor the names of his
contributors may be used to endorse or promote products derived from
this software without specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE STEPHEN MONTGOMERY-SMITH AND CONTRIBUTORS
``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL STEPHEN MONTGOMERY-SMITH OR
CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT
OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
POSSIBILITY OF SUCH DAMAGE.
*/
#include "xkbset.h"
void print_controls(XkbControlsPtr ctrls) {
int i;
printf("Audible Bell = %s\n", (ctrls->enabled_ctrls & XkbAudibleBellMask)?"On":"Off");
printf("Repeat Keys = %s\n", (ctrls->enabled_ctrls & XkbRepeatKeysMask)?"On":"Off");
printf("Repeat Delay = %d\n", ctrls->repeat_delay);
printf("Repeat Interval = %d\n", ctrls->repeat_interval);
printf("Per Key Repeat =");
for (i=0;i<32;i++) {
if (i%8==0) printf("\n ");
printf("%x%x",ctrls->per_key_repeat[i]>>4,ctrls->per_key_repeat[i]&15);
}
printf("\n");
printf("Mouse-Keys = %s\n", (ctrls->enabled_ctrls & XkbMouseKeysMask)?"On":"Off");
printf("Mouse-Keys Default Button = %d\n", ctrls->mk_dflt_btn);
printf("Mouse-Keys Acceleration = %s\n", (ctrls->enabled_ctrls & XkbMouseKeysAccelMask)?"On":"Off");
printf("Mouse-Keys Acceleration Delay = %d\n", ctrls->mk_delay);
printf("Mouse-Keys Acceleration Interval = %d\n", ctrls->mk_interval);
printf("Mouse-Keys Acceleration Time to Max = %d\n", ctrls->mk_time_to_max);
printf("Mouse-Keys Acceleration Max Speed = %d\n", ctrls->mk_max_speed);
printf("Mouse-Keys Acceleration Curve = %d\n", ctrls->mk_curve);
printf("Accessibility Features (AccessX) = %s\n", (ctrls->enabled_ctrls & XkbAccessXKeysMask)?"On":"Off");
printf("Sticky-Keys = %s\n", (ctrls->enabled_ctrls & XkbStickyKeysMask)?"On":"Off");
printf("Two Keys Mask = %s\n", (ctrls->ax_options & XkbAX_TwoKeysMask)?"On":"Off");
printf("Latch to Lock Mask = %s\n", (ctrls->ax_options & XkbAX_LatchToLockMask)?"On":"Off");
printf("Slow-Keys = %s\n", (ctrls->enabled_ctrls & XkbSlowKeysMask)?"On":"Off");
printf("Slow Keys Delay = %d\n", ctrls->slow_keys_delay);
printf("Bounce-Keys = %s\n", (ctrls->enabled_ctrls & XkbBounceKeysMask)?"On":"Off");
printf("Debounce Delay = %d\n", ctrls->debounce_delay);
printf("AccessX Feedback = %s\n", (ctrls->enabled_ctrls & XkbAccessXFeedbackMask)?"On":"Off");
printf("Use Fixed Pitch Bell = %s\n", (ctrls->ax_options & XkbAX_DumbBellFBMask)?"On":"Off");
printf("Beep when LED changes = %s\n", (ctrls->ax_options & XkbAX_IndicatorFBMask)?"On":"Off");
printf("Beep on Controls on/off = %s\n", (ctrls->ax_options & XkbAX_FeatureFBMask)?"On":"Off");
printf("Beep if Slow/Bounce-Keys about to be turned off = %s\n", (ctrls->ax_options & XkbAX_SlowWarnFBMask)?"On":"Off");
printf("Beep on Slow-Key Press = %s\n", (ctrls->ax_options & XkbAX_SKPressFBMask)?"On":"Off");
printf("Beep on Slow-Key Accept = %s\n", (ctrls->ax_options & XkbAX_SKAcceptFBMask)?"On":"Off");
printf("Beep on Slow-Key Reject = %s\n", (ctrls->ax_options & XkbAX_SKRejectFBMask)?"On":"Off");
printf("Beep on Slow-Key Release = %s\n", (ctrls->ax_options & XkbAX_SKReleaseFBMask)?"On":"Off");
printf("Beep on Bounce-Key Reject = %s\n", (ctrls->ax_options & XkbAX_BKRejectFBMask)?"On":"Off");
printf("Beep on Sticky-Key Actions = %s\n", (ctrls->ax_options & XkbAX_StickyKeysFBMask)?"On":"Off");
printf("Keyboard Overlay 1 = %s\n", (ctrls->enabled_ctrls & XkbOverlay1Mask)?"On":"Off");
printf("Keyboard Overlay 2 = %s\n", (ctrls->enabled_ctrls & XkbOverlay2Mask)?"On":"Off");
printf("Groups Wrap Type = ");
if ((ctrls->groups_wrap & 0xF0) == XkbRedirectIntoRange) printf("redirect\n");
else if ((ctrls->groups_wrap & 0xF0) == XkbClampIntoRange) printf("clamp\n");
else if ((ctrls->groups_wrap & 0xF0) == XkbWrapIntoRange) printf("wrap\n");
else printf("undefined\n");
printf("Groups Wrap Value = %d\n", ctrls->groups_wrap & 0x0F);
printf("Ignore Group Lock = %s\n", (ctrls->enabled_ctrls & XkbIgnoreGroupLockMask)?"On":"Off");
printf("Nullify Shift = %s\n", (ctrls->internal.real_mods & ShiftMask)?"On":"Off");
printf("Nullify Caps-Lock = %s\n", (ctrls->internal.real_mods & LockMask)?"On":"Off");
printf("Nullify Control = %s\n", (ctrls->internal.real_mods & ControlMask)?"On":"Off");
printf("Nullify Mod1 = %s\n", (ctrls->internal.real_mods & Mod1Mask)?"On":"Off");
printf("Nullify Mod2 = %s\n", (ctrls->internal.real_mods & Mod2Mask)?"On":"Off");
printf("Nullify Mod3 = %s\n", (ctrls->internal.real_mods & Mod3Mask)?"On":"Off");
printf("Nullify Mod4 = %s\n", (ctrls->internal.real_mods & Mod4Mask)?"On":"Off");
printf("Nullify Mod5 = %s\n", (ctrls->internal.real_mods & Mod5Mask)?"On":"Off");
printf("Ignore Lock of Shift = %s\n", (ctrls->ignore_lock.real_mods & ShiftMask)?"On":"Off");
printf("Ignore Lock of Caps-Lock = %s\n", (ctrls->ignore_lock.real_mods & LockMask)?"On":"Off");
printf("Ignore Lock of Control = %s\n", (ctrls->ignore_lock.real_mods & ControlMask)?"On":"Off");
printf("Ignore Lock of Mod1 = %s\n", (ctrls->ignore_lock.real_mods & Mod1Mask)?"On":"Off");
printf("Ignore Lock of Mod2 = %s\n", (ctrls->ignore_lock.real_mods & Mod2Mask)?"On":"Off");
printf("Ignore Lock of Mod3 = %s\n", (ctrls->ignore_lock.real_mods & Mod3Mask)?"On":"Off");
printf("Ignore Lock of Mod4 = %s\n", (ctrls->ignore_lock.real_mods & Mod4Mask)?"On":"Off");
printf("Ignore Lock of Mod5 = %s\n", (ctrls->ignore_lock.real_mods & Mod5Mask)?"On":"Off");
}
void print_controls_in_line(XkbControlsPtr ctrls) {
int i;
char *s;
int print_nibble;
printf("xkbset");
printf(" %s","-b" + ((ctrls->enabled_ctrls & XkbAudibleBellMask) != 0));
printf(" %s","-r" + ((ctrls->enabled_ctrls & XkbRepeatKeysMask) != 0));
printf(" rate");
printf(" %d", ctrls->repeat_delay);
printf(" %d", ctrls->repeat_interval);
printf(" perkeyrepeat");
printf(" ");
for (i=0;i<32;i++)
printf("%x%x",ctrls->per_key_repeat[i]>>4,ctrls->per_key_repeat[i]&15);
printf(" %s","-m" + ((ctrls->enabled_ctrls & XkbMouseKeysMask) != 0));
printf(" %d", ctrls->mk_dflt_btn);
printf(" %s","-ma" + ((ctrls->enabled_ctrls & XkbMouseKeysAccelMask) != 0));
printf(" %d", ctrls->mk_delay);
printf(" %d", ctrls->mk_interval);
printf(" %d", ctrls->mk_time_to_max);
printf(" %d", ctrls->mk_max_speed);
printf(" %d", ctrls->mk_curve);
printf(" %s","-a" + ((ctrls->enabled_ctrls & XkbAccessXKeysMask) != 0));
printf(" %s","-st" + ((ctrls->enabled_ctrls & XkbStickyKeysMask) != 0));
printf(" %s","-twokey" + ((ctrls->ax_options & XkbAX_TwoKeysMask) != 0));
printf(" %s","-latchlock" + ((ctrls->ax_options & XkbAX_LatchToLockMask) != 0));
printf(" %s","-sl" + ((ctrls->enabled_ctrls & XkbSlowKeysMask) != 0));
printf(" %d", ctrls->slow_keys_delay);
printf(" %s","-bo" + ((ctrls->enabled_ctrls & XkbBounceKeysMask) != 0));
printf(" %d", ctrls->debounce_delay);
printf(" %s","-f" + ((ctrls->enabled_ctrls & XkbAccessXFeedbackMask) != 0));
printf(" %s","-dumbbell" + ((ctrls->ax_options & XkbAX_DumbBellFBMask) != 0));
printf(" %s","-led" + ((ctrls->ax_options & XkbAX_IndicatorFBMask) != 0));
printf(" %s","-feature" + ((ctrls->ax_options & XkbAX_FeatureFBMask) != 0));
printf(" %s","-slowwarn" + ((ctrls->ax_options & XkbAX_SlowWarnFBMask) != 0));
printf(" %s","-slowpress" + ((ctrls->ax_options & XkbAX_SKPressFBMask) != 0));
printf(" %s","-slowaccept" + ((ctrls->ax_options & XkbAX_SKAcceptFBMask) != 0));
printf(" %s","-slowreject" + ((ctrls->ax_options & XkbAX_SKRejectFBMask) != 0));
printf(" %s","-slowrelease" + ((ctrls->ax_options & XkbAX_SKReleaseFBMask) != 0));
printf(" %s","-bouncereject" + ((ctrls->ax_options & XkbAX_BKRejectFBMask) != 0));
printf(" %s","-stickybeep" + ((ctrls->ax_options & XkbAX_StickyKeysFBMask) != 0));
printf(" %s","-ov1" + ((ctrls->enabled_ctrls & XkbOverlay1Mask) != 0));
printf(" %s","-ov2" + ((ctrls->enabled_ctrls & XkbOverlay2Mask) != 0));
s = NULL;
if ((ctrls->groups_wrap & 0xF0)== XkbRedirectIntoRange) s = "redirect";
else if ((ctrls->groups_wrap & 0xF0)== XkbClampIntoRange) s = "clamp";
else if ((ctrls->groups_wrap & 0xF0)== XkbWrapIntoRange) s = "wrap";
if (s!=NULL) printf(" groupswrap %s",s);
print_nibble = 0;
if ((ctrls->groups_wrap & 0xF0)== XkbRedirectIntoRange) print_nibble = 1;
else if ((ctrls->groups_wrap & 0xF0)== XkbClampIntoRange) print_nibble = 1;
else if ((ctrls->groups_wrap & 0xF0)== XkbWrapIntoRange) print_nibble = 1;
if (print_nibble) printf(" %d", ctrls->groups_wrap & 0x0F);
printf(" %s","-ignoregrouplock" + ((ctrls->enabled_ctrls & XkbIgnoreGroupLockMask) != 0));
printf(" nullify");
printf(" %s","-shift" + ((ctrls->internal.real_mods & ShiftMask) != 0));
printf(" %s","-lock" + ((ctrls->internal.real_mods & LockMask) != 0));
printf(" %s","-control" + ((ctrls->internal.real_mods & ControlMask) != 0));
printf(" %s","-mod1" + ((ctrls->internal.real_mods & Mod1Mask) != 0));
printf(" %s","-mod2" + ((ctrls->internal.real_mods & Mod2Mask) != 0));
printf(" %s","-mod3" + ((ctrls->internal.real_mods & Mod3Mask) != 0));
printf(" %s","-mod4" + ((ctrls->internal.real_mods & Mod4Mask) != 0));
printf(" %s","-mod5" + ((ctrls->internal.real_mods & Mod5Mask) != 0));
printf(" ignorelock");
printf(" %s","-shift" + ((ctrls->ignore_lock.real_mods & ShiftMask) != 0));
printf(" %s","-lock" + ((ctrls->ignore_lock.real_mods & LockMask) != 0));
printf(" %s","-control" + ((ctrls->ignore_lock.real_mods & ControlMask) != 0));
printf(" %s","-mod1" + ((ctrls->ignore_lock.real_mods & Mod1Mask) != 0));
printf(" %s","-mod2" + ((ctrls->ignore_lock.real_mods & Mod2Mask) != 0));
printf(" %s","-mod3" + ((ctrls->ignore_lock.real_mods & Mod3Mask) != 0));
printf(" %s","-mod4" + ((ctrls->ignore_lock.real_mods & Mod4Mask) != 0));
printf(" %s","-mod5" + ((ctrls->ignore_lock.real_mods & Mod5Mask) != 0));
printf("\n");
}
void print_expire_controls(XkbControlsPtr ctrls) {
printf("AccessX Timeout = %d\n",ctrls->ax_timeout);
printf("Upon Expiry Audible Bell will be: %s\n",
(ctrls->axt_ctrls_mask & XkbAudibleBellMask)?((ctrls->axt_ctrls_values & XkbAudibleBellMask)?"On":"Off"):"Unchanged");
printf("Upon Expiry Repeat Keys will be: %s\n",
(ctrls->axt_ctrls_mask & XkbRepeatKeysMask)?((ctrls->axt_ctrls_values & XkbRepeatKeysMask)?"On":"Off"):"Unchanged");
printf("Upon Expiry Mouse-Keys will be: %s\n",
(ctrls->axt_ctrls_mask & XkbMouseKeysMask)?((ctrls->axt_ctrls_values & XkbMouseKeysMask)?"On":"Off"):"Unchanged");
printf("Upon Expiry Mouse-Keys Acceleration will be: %s\n",
(ctrls->axt_ctrls_mask & XkbMouseKeysAccelMask)?((ctrls->axt_ctrls_values & XkbMouseKeysAccelMask)?"On":"Off"):"Unchanged");
printf("Upon Expiry Accessibility Features (AccessX) will be: %s\n",
(ctrls->axt_ctrls_mask & XkbAccessXKeysMask)?((ctrls->axt_ctrls_values & XkbAccessXKeysMask)?"On":"Off"):"Unchanged");
printf("Upon Expiry Sticky-Keys will be: %s\n",
(ctrls->axt_ctrls_mask & XkbStickyKeysMask)?((ctrls->axt_ctrls_values & XkbStickyKeysMask)?"On":"Off"):"Unchanged");
printf("Upon Expiry Two Keys Mask will be: %s\n",
(ctrls->axt_opts_mask & XkbAX_TwoKeysMask)?((ctrls->axt_opts_values & XkbAX_TwoKeysMask)?"On":"Off"):"Unchanged");
printf("Upon Expiry Latch to Lock Mask will be: %s\n",
(ctrls->axt_opts_mask & XkbAX_LatchToLockMask)?((ctrls->axt_opts_values & XkbAX_LatchToLockMask)?"On":"Off"):"Unchanged");
printf("Upon Expiry Slow-Keys will be: %s\n",
(ctrls->axt_ctrls_mask & XkbSlowKeysMask)?((ctrls->axt_ctrls_values & XkbSlowKeysMask)?"On":"Off"):"Unchanged");
printf("Upon Expiry Bounce-Keys will be: %s\n",
(ctrls->axt_ctrls_mask & XkbBounceKeysMask)?((ctrls->axt_ctrls_values & XkbBounceKeysMask)?"On":"Off"):"Unchanged");
printf("Upon Expiry AccessX Feedback will be: %s\n",
(ctrls->axt_ctrls_mask & XkbAccessXFeedbackMask)?((ctrls->axt_ctrls_values & XkbAccessXFeedbackMask)?"On":"Off"):"Unchanged");
printf("Upon Expiry Use Fixed Pitch Bell will be: %s\n",
(ctrls->axt_opts_mask & XkbAX_DumbBellFBMask)?((ctrls->axt_opts_values & XkbAX_DumbBellFBMask)?"On":"Off"):"Unchanged");
printf("Upon Expiry Beep when LED changes will be: %s\n",
(ctrls->axt_opts_mask & XkbAX_IndicatorFBMask)?((ctrls->axt_opts_values & XkbAX_IndicatorFBMask)?"On":"Off"):"Unchanged");
printf("Upon Expiry Beep on Controls on/off will be: %s\n",
(ctrls->axt_opts_mask & XkbAX_FeatureFBMask)?((ctrls->axt_opts_values & XkbAX_FeatureFBMask)?"On":"Off"):"Unchanged");
printf("Upon Expiry Beep if Slow/Bounce-Keys about to be turned off will be: %s\n",
(ctrls->axt_opts_mask & XkbAX_SlowWarnFBMask)?((ctrls->axt_opts_values & XkbAX_SlowWarnFBMask)?"On":"Off"):"Unchanged");
printf("Upon Expiry Beep on Slow-Key Press will be: %s\n",
(ctrls->axt_opts_mask & XkbAX_SKPressFBMask)?((ctrls->axt_opts_values & XkbAX_SKPressFBMask)?"On":"Off"):"Unchanged");
printf("Upon Expiry Beep on Slow-Key Accept will be: %s\n",
(ctrls->axt_opts_mask & XkbAX_SKAcceptFBMask)?((ctrls->axt_opts_values & XkbAX_SKAcceptFBMask)?"On":"Off"):"Unchanged");
printf("Upon Expiry Beep on Slow-Key Reject will be: %s\n",
(ctrls->axt_opts_mask & XkbAX_SKRejectFBMask)?((ctrls->axt_opts_values & XkbAX_SKRejectFBMask)?"On":"Off"):"Unchanged");
printf("Upon Expiry Beep on Slow-Key Release will be: %s\n",
(ctrls->axt_opts_mask & XkbAX_SKReleaseFBMask)?((ctrls->axt_opts_values & XkbAX_SKReleaseFBMask)?"On":"Off"):"Unchanged");
printf("Upon Expiry Beep on Bounce-Key Reject will be: %s\n",
(ctrls->axt_opts_mask & XkbAX_BKRejectFBMask)?((ctrls->axt_opts_values & XkbAX_BKRejectFBMask)?"On":"Off"):"Unchanged");
printf("Upon Expiry Beep on Sticky-Key Actions will be: %s\n",
(ctrls->axt_opts_mask & XkbAX_StickyKeysFBMask)?((ctrls->axt_opts_values & XkbAX_StickyKeysFBMask)?"On":"Off"):"Unchanged");
printf("Upon Expiry Keyboard Overlay 1 will be: %s\n",
(ctrls->axt_ctrls_mask & XkbOverlay1Mask)?((ctrls->axt_ctrls_values & XkbOverlay1Mask)?"On":"Off"):"Unchanged");
printf("Upon Expiry Keyboard Overlay 2 will be: %s\n",
(ctrls->axt_ctrls_mask & XkbOverlay2Mask)?((ctrls->axt_ctrls_values & XkbOverlay2Mask)?"On":"Off"):"Unchanged");
printf("Upon Expiry Ignore Group Lock will be: %s\n",
(ctrls->axt_ctrls_mask & XkbIgnoreGroupLockMask)?((ctrls->axt_ctrls_values & XkbIgnoreGroupLockMask)?"On":"Off"):"Unchanged");
}
void print_expire_controls_in_line(XkbControlsPtr ctrls) {
printf("xkbset exp %d",ctrls->ax_timeout);
printf(" %sb",
(ctrls->axt_ctrls_mask & XkbAudibleBellMask)?((ctrls->axt_ctrls_values & XkbAudibleBellMask)?"":"-"):"=");
printf(" %sr",
(ctrls->axt_ctrls_mask & XkbRepeatKeysMask)?((ctrls->axt_ctrls_values & XkbRepeatKeysMask)?"":"-"):"=");
printf(" %sm",
(ctrls->axt_ctrls_mask & XkbMouseKeysMask)?((ctrls->axt_ctrls_values & XkbMouseKeysMask)?"":"-"):"=");
printf(" %sma",
(ctrls->axt_ctrls_mask & XkbMouseKeysAccelMask)?((ctrls->axt_ctrls_values & XkbMouseKeysAccelMask)?"":"-"):"=");
printf(" %sa",
(ctrls->axt_ctrls_mask & XkbAccessXKeysMask)?((ctrls->axt_ctrls_values & XkbAccessXKeysMask)?"":"-"):"=");
printf(" %sst",
(ctrls->axt_ctrls_mask & XkbStickyKeysMask)?((ctrls->axt_ctrls_values & XkbStickyKeysMask)?"":"-"):"=");
printf(" %stwokey",
(ctrls->axt_opts_mask & XkbAX_TwoKeysMask)?((ctrls->axt_opts_values & XkbAX_TwoKeysMask)?"":"-"):"=");
printf(" %slatchlock",
(ctrls->axt_opts_mask & XkbAX_LatchToLockMask)?((ctrls->axt_opts_values & XkbAX_LatchToLockMask)?"":"-"):"=");
printf(" %ssl",
(ctrls->axt_ctrls_mask & XkbSlowKeysMask)?((ctrls->axt_ctrls_values & XkbSlowKeysMask)?"":"-"):"=");
printf(" %sbo",
(ctrls->axt_ctrls_mask & XkbBounceKeysMask)?((ctrls->axt_ctrls_values & XkbBounceKeysMask)?"":"-"):"=");
printf(" %sf",
(ctrls->axt_ctrls_mask & XkbAccessXFeedbackMask)?((ctrls->axt_ctrls_values & XkbAccessXFeedbackMask)?"":"-"):"=");
printf(" %sdumbbell",
(ctrls->axt_opts_mask & XkbAX_DumbBellFBMask)?((ctrls->axt_opts_values & XkbAX_DumbBellFBMask)?"":"-"):"=");
printf(" %sled",
(ctrls->axt_opts_mask & XkbAX_IndicatorFBMask)?((ctrls->axt_opts_values & XkbAX_IndicatorFBMask)?"":"-"):"=");
printf(" %sfeature",
(ctrls->axt_opts_mask & XkbAX_FeatureFBMask)?((ctrls->axt_opts_values & XkbAX_FeatureFBMask)?"":"-"):"=");
printf(" %sslowwarn",
(ctrls->axt_opts_mask & XkbAX_SlowWarnFBMask)?((ctrls->axt_opts_values & XkbAX_SlowWarnFBMask)?"":"-"):"=");
printf(" %sslowpress",
(ctrls->axt_opts_mask & XkbAX_SKPressFBMask)?((ctrls->axt_opts_values & XkbAX_SKPressFBMask)?"":"-"):"=");
printf(" %sslowaccept",
(ctrls->axt_opts_mask & XkbAX_SKAcceptFBMask)?((ctrls->axt_opts_values & XkbAX_SKAcceptFBMask)?"":"-"):"=");
printf(" %sslowreject",
(ctrls->axt_opts_mask & XkbAX_SKRejectFBMask)?((ctrls->axt_opts_values & XkbAX_SKRejectFBMask)?"":"-"):"=");
printf(" %sslowrelease",
(ctrls->axt_opts_mask & XkbAX_SKReleaseFBMask)?((ctrls->axt_opts_values & XkbAX_SKReleaseFBMask)?"":"-"):"=");
printf(" %sbouncereject",
(ctrls->axt_opts_mask & XkbAX_BKRejectFBMask)?((ctrls->axt_opts_values & XkbAX_BKRejectFBMask)?"":"-"):"=");
printf(" %sstickybeep",
(ctrls->axt_opts_mask & XkbAX_StickyKeysFBMask)?((ctrls->axt_opts_values & XkbAX_StickyKeysFBMask)?"":"-"):"=");
printf(" %sov1",
(ctrls->axt_ctrls_mask & XkbOverlay1Mask)?((ctrls->axt_ctrls_values & XkbOverlay1Mask)?"":"-"):"=");
printf(" %sov2",
(ctrls->axt_ctrls_mask & XkbOverlay2Mask)?((ctrls->axt_ctrls_values & XkbOverlay2Mask)?"":"-"):"=");
printf(" %signoregrouplock",
(ctrls->axt_ctrls_mask & XkbIgnoreGroupLockMask)?((ctrls->axt_ctrls_values & XkbIgnoreGroupLockMask)?"":"-"):"=");
printf("\n");
}
|