]> git.lizzy.rs Git - plan9front.git/blob - sys/man/3/kbd
kbd(1): revert repeat/delay change
[plan9front.git] / sys / man / 3 / kbd
1 .TH KBD 3 
2 .SH NAME
3 kbd \- pc keyboard driver
4 .SH SYNOPSIS
5 .nf
6 .B bind -a #b /dev
7
8 .B /dev/scancode
9 .B /dev/leds
10 .fi
11 .SH DESCRIPTION
12 .PP
13 The
14 .I kbd
15 device serves a one-level directory containing the files
16 .BR scancode
17 and
18 .BR leds .
19 .PP
20 Reading the
21 .BR scancode
22 file returns the raw scancode stream as it is emitted by the keyboard
23 device without any translation. It is usually
24 .IR kbdfs (8)
25 task to interpret the scancodes and provide device independent
26 keyboard input to programs. The
27 .BR scancode
28 file can be only opened once by the hostowner.
29 .PP
30 Writing a number to the write-only 
31 .BR leds
32 file changes the status leds on the keyboard. the value of the
33 number is the addition of 1, 2 and 4 representing activated
34 Scroll, Num and Caps leds.
35 .SH EXAMPLE 
36 Set the Scroll and Caps leds:
37 .EX
38 echo 5 >/dev/leds
39 .EE
40 .SH "SEE ALSO"
41 .IR kbdfs (8)
42 .SH SOURCE
43 .B /sys/src/9/pc/devkbd.c