| 1 |
.\" @(#)setleds.1 1.0 940924 aeb |
| 2 |
.TH SETLEDS 1 "24 Sep 1994" "kbd" |
| 3 |
.SH NAME |
| 4 |
setleds \- set the keyboard leds |
| 5 |
.SH SYNOPSIS |
| 6 |
.B setleds |
| 7 |
.RI [ "-v" "] [" "-L" "] [" "-D" "] [" "-F" ] |
| 8 |
.RI [ {+|-}num "] [" {+|-}caps "] [" {+|-}scroll ] |
| 9 |
.SH DESCRIPTION |
| 10 |
.LP |
| 11 |
.B Setleds |
| 12 |
reports and changes the led flag settings of a VT |
| 13 |
(namely NumLock, CapsLock and ScrollLock). |
| 14 |
Without arguments, |
| 15 |
.B setleds |
| 16 |
prints the current settings. |
| 17 |
With arguments, it sets or clears the indicated flags |
| 18 |
(and leaves the others unchanged). The settings before |
| 19 |
and after the change are reported if the \-v flag is given. |
| 20 |
.LP |
| 21 |
The led flag settings are specific for each VT (and the VT |
| 22 |
corresponding to stdin is used). |
| 23 |
.LP |
| 24 |
By default (or with option \-F), |
| 25 |
.B setleds |
| 26 |
will only change the VT flags (and their setting may be |
| 27 |
reflected by the keyboard leds). |
| 28 |
.LP |
| 29 |
With option \-D, |
| 30 |
.B setleds |
| 31 |
will change both the VT flags and their default settings |
| 32 |
(so that a subsequent reset will not undo the change). |
| 33 |
This might be useful for people who always want to have numlock set. |
| 34 |
.LP |
| 35 |
With option \-L, |
| 36 |
.B setleds |
| 37 |
will not touch the VT flags, but only change the leds. |
| 38 |
From this moment on, the leds will no longer reflect the VT flags |
| 39 |
(but display whatever is put into them). The command |
| 40 |
.B "setleds -L" |
| 41 |
(without further arguments) will restore the situation in which |
| 42 |
the leds reflect the VT flags. |
| 43 |
.LP |
| 44 |
One might use |
| 45 |
.B setleds |
| 46 |
in /etc/rc to define the initial and default state of NumLock, |
| 47 |
e.g.\& by |
| 48 |
.br |
| 49 |
.in +5m |
| 50 |
INITTY=/dev/tty[1-8] |
| 51 |
.br |
| 52 |
for tty in $INITTY; do |
| 53 |
.br |
| 54 |
.in +5m |
| 55 |
setleds \-D +num < $tty |
| 56 |
.br |
| 57 |
.in -5m |
| 58 |
done |
| 59 |
.in -5m |
| 60 |
.SH OPTIONS |
| 61 |
.TP |
| 62 |
\-num +num |
| 63 |
Clear or set NumLock. |
| 64 |
(At present, the NumLock setting influences the |
| 65 |
interpretation of keypad keys. |
| 66 |
Pressing the NumLock key complements the NumLock setting.) |
| 67 |
.TP |
| 68 |
\-caps +caps |
| 69 |
Clear or set CapsLock. |
| 70 |
(At present, the CapsLock setting complements the Shift key |
| 71 |
when applied to letters. |
| 72 |
Pressing the CapsLock key complements the CapsLock setting.) |
| 73 |
.TP |
| 74 |
\-scroll +scroll |
| 75 |
Clear or set ScrollLock. |
| 76 |
(At present, pressing the ScrollLock key (or ^S/^Q) stops/starts |
| 77 |
console output.) |
| 78 |
.SH "BUGS" |
| 79 |
In keyboard application mode the NumLock key does not |
| 80 |
influence the NumLock flag setting. |
| 81 |
.SH AUTHORS |
| 82 |
Andries Brouwer <[email protected]> |
| 83 |
.SH "SEE ALSO" |
| 84 |
.BR loadkeys (1) |
| 85 |
|