version 2, including all changes.
.
Rev |
Author |
# |
Line |
1 |
perry |
1 |
SETLEDS |
|
|
2 |
!!!SETLEDS |
|
|
3 |
NAME |
|
|
4 |
SYNOPSIS |
|
|
5 |
DESCRIPTION |
|
|
6 |
OPTIONS |
|
|
7 |
EXAMPLE |
|
|
8 |
BUGS |
|
|
9 |
SEE ALSO |
|
|
10 |
---- |
|
|
11 |
!!NAME |
|
|
12 |
|
|
|
13 |
|
|
|
14 |
setleds - set the keyboard leds |
|
|
15 |
!!SYNOPSIS |
|
|
16 |
|
|
|
17 |
|
|
|
18 |
__setleds [[__''-v''__] [[__''-L''__] |
|
|
19 |
[[__''-D''__] [[__''-F''__] |
|
|
20 |
[[__''{+|-}num''__] [[__''{+|-}caps''__] |
|
|
21 |
[[__''{+|-}scroll''__]__ |
|
|
22 |
!!DESCRIPTION |
|
|
23 |
|
|
|
24 |
|
|
|
25 |
__setleds__ reports and changes the led flag settings of |
2 |
perry |
26 |
the current VT (namely !NumLock, !CapsLock and !ScrollLock). |
1 |
perry |
27 |
Without arguments, __setleds__ prints the current |
|
|
28 |
settings. With arguments, it sets or clears the indicated |
|
|
29 |
flags (and leaves the others unchanged). The settings before |
|
|
30 |
and after the change are reported if the __-v__ flag is |
|
|
31 |
given. |
|
|
32 |
!!OPTIONS |
|
|
33 |
|
|
|
34 |
|
|
|
35 |
''-F'' |
|
|
36 |
|
|
|
37 |
|
|
|
38 |
This is the default. Only change the VT flags (and their |
|
|
39 |
setting may be reflected by the keyboard leds). |
|
|
40 |
|
|
|
41 |
|
|
|
42 |
''-D'' |
|
|
43 |
|
|
|
44 |
|
|
|
45 |
Change both the VT flags and their default settings (so that |
|
|
46 |
a subsequent reset will not undo the change). This might be |
|
|
47 |
useful for people who always want to have numlock |
|
|
48 |
set. |
|
|
49 |
|
|
|
50 |
|
|
|
51 |
''-L'' |
|
|
52 |
|
|
|
53 |
|
|
|
54 |
Do not touch the VT flags, but only change the leds. From |
|
|
55 |
this moment on, the leds will no longer reflect the VT flags |
|
|
56 |
(but display whatever is put into them). The command |
|
|
57 |
__setleds -L__ (without further arguments) will restore |
|
|
58 |
the situation in which the leds reflect the VT |
|
|
59 |
flags. |
|
|
60 |
|
|
|
61 |
|
|
|
62 |
''-num +num'' |
|
|
63 |
|
|
|
64 |
|
2 |
perry |
65 |
Clear or set !NumLock. (At present, the !NumLock setting |
1 |
perry |
66 |
influences the interpretation of keypad keys. Pressing the |
2 |
perry |
67 |
!NumLock key complements the !NumLock setting.) |
1 |
perry |
68 |
|
|
|
69 |
|
|
|
70 |
''-caps +caps'' |
|
|
71 |
|
|
|
72 |
|
2 |
perry |
73 |
Clear or set !CapsLock. (At present, the !CapsLock setting |
1 |
perry |
74 |
complements the Shift key when applied to letters. Pressing |
2 |
perry |
75 |
the !CapsLock key complements the !CapsLock |
1 |
perry |
76 |
setting.) |
|
|
77 |
|
|
|
78 |
|
|
|
79 |
''-scroll +scroll'' |
|
|
80 |
|
|
|
81 |
|
2 |
perry |
82 |
Clear or set !ScrollLock. (At present, pressing the |
|
|
83 |
!ScrollLock key (or ^S/^Q) stops/starts console |
1 |
perry |
84 |
output.) |
|
|
85 |
!!EXAMPLE |
|
|
86 |
|
|
|
87 |
|
|
|
88 |
One might use __setleds__ in /etc/rc to define the |
2 |
perry |
89 |
initial and default state of !NumLock, e.g. by |
1 |
perry |
90 |
|
|
|
91 |
|
|
|
92 |
INITTY=/dev/tty[[1-8] |
|
|
93 |
for tty in $INITTY; do |
|
|
94 |
|
|
|
95 |
|
|
|
96 |
setleds -D +num |
|
|
97 |
|
|
|
98 |
|
|
|
99 |
done |
|
|
100 |
!!BUGS |
|
|
101 |
|
|
|
102 |
|
2 |
perry |
103 |
In keyboard application mode the !NumLock key does not |
|
|
104 |
influence the !NumLock flag setting. |
1 |
perry |
105 |
!!SEE ALSO |
|
|
106 |
|
|
|
107 |
|
|
|
108 |
loadkeys(1). |
|
|
109 |
---- |