1SETLEDS(1)                  General Commands Manual                 SETLEDS(1)
2
3
4

NAME

6       setleds - set the keyboard leds
7

SYNOPSIS

9       setleds [-v] [-L] [-D] [-F] [{+|-}num] [{+|-}caps] [{+|-}scroll]
10

DESCRIPTION

12       Setleds  reports and changes the led flag settings of a VT (namely Num‐
13       Lock, CapsLock and ScrollLock).  Without arguments, setleds prints  the
14       current  settings.   With  arguments,  it  sets or clears the indicated
15       flags (and leaves the others unchanged). The settings before and  after
16       the change are reported if the -v flag is given.
17
18       The  led flag settings are specific for each VT (and the VT correspond‐
19       ing to stdin is used).
20
21       By default (or with option -F), setleds will only change the  VT  flags
22       (and their setting may be reflected by the keyboard leds).
23
24       With option -D, setleds will change both the VT flags and their default
25       settings (so that a subsequent reset will not undo the  change).   This
26       might be useful for people who always want to have numlock set.
27
28       With  option  -L,  setleds will not touch the VT flags, but only change
29       the leds.  From this moment on, the leds will no longer reflect the  VT
30       flags  (but  display whatever is put into them). The command setleds -L
31       (without further arguments) will restore the  situation  in  which  the
32       leds reflect the VT flags.
33
34       One  might  use  setleds  in  /etc/rc to define the initial and default
35       state of NumLock, e.g. by
36            INITTY=/dev/tty[1-8]
37            for tty in $INITTY; do
38                 setleds -D +num < $tty
39            done
40

OPTIONS

42       -num +num
43              Clear or set NumLock.  (At present, the NumLock  setting  influ‐
44              ences  the  interpretation of keypad keys.  Pressing the NumLock
45              key complements the NumLock setting.)
46
47       -caps +caps
48              Clear or set CapsLock.  (At present, the CapsLock  setting  com‐
49              plements  the  Shift  key when applied to letters.  Pressing the
50              CapsLock key complements the CapsLock setting.)
51
52       -scroll +scroll
53              Clear or set ScrollLock.  (At present, pressing  the  ScrollLock
54              key (or ^S/^Q) stops/starts console output.)
55

BUGS

57       In  keyboard  application  mode  the NumLock key does not influence the
58       NumLock flag setting.
59

SEE ALSO

61       loadkeys(1)
62
63
64
65
66                                  24 Sep 1994                       SETLEDS(1)
Impressum