merge
This commit is contained in:
commit
f09046cfe0
2 changed files with 20 additions and 21 deletions
|
@ -27,7 +27,7 @@ keyboard input to programs. The
|
||||||
.BR scancode
|
.BR scancode
|
||||||
file can be only opend once by the hostowner.
|
file can be only opend once by the hostowner.
|
||||||
.PP
|
.PP
|
||||||
Writing a number to the write only
|
Writing a number to the write-only
|
||||||
.BR leds
|
.BR leds
|
||||||
file changes the status leds on the keyboard. the value of the
|
file changes the status leds on the keyboard. the value of the
|
||||||
number is the addition of 1, 2 and 4 representing activated
|
number is the addition of 1, 2 and 4 representing activated
|
||||||
|
|
|
@ -12,7 +12,7 @@ kbdfs \- keyboard and console filesystem
|
||||||
.B -m
|
.B -m
|
||||||
.I mntpnt
|
.I mntpnt
|
||||||
] [
|
] [
|
||||||
.I consfile
|
.I filename
|
||||||
]
|
]
|
||||||
.nf
|
.nf
|
||||||
|
|
||||||
|
@ -61,8 +61,7 @@ The
|
||||||
option causes
|
option causes
|
||||||
.IR kbdfs
|
.IR kbdfs
|
||||||
to post its channel on
|
to post its channel on
|
||||||
.B /srv/
|
.B /srv/\fIsrv\fP.
|
||||||
.I srv.
|
|
||||||
On system startup,
|
On system startup,
|
||||||
.IR boot (8)
|
.IR boot (8)
|
||||||
sets this to
|
sets this to
|
||||||
|
@ -71,13 +70,13 @@ With the
|
||||||
.B -m
|
.B -m
|
||||||
option,
|
option,
|
||||||
.IR kbdfs
|
.IR kbdfs
|
||||||
mounts itself before (see
|
mounts itself on
|
||||||
.IR bind (2))
|
|
||||||
on
|
|
||||||
.I mntpnt
|
.I mntpnt
|
||||||
|
(see
|
||||||
|
.IR bind (2)),
|
||||||
otherwise on
|
otherwise on
|
||||||
.B /dev
|
.B /dev
|
||||||
(default).
|
(the default).
|
||||||
.SS Console
|
.SS Console
|
||||||
.PP
|
.PP
|
||||||
Reading the
|
Reading the
|
||||||
|
@ -102,7 +101,7 @@ encoding (see
|
||||||
.IR utf (6))
|
.IR utf (6))
|
||||||
before putting them into the buffer. A
|
before putting them into the buffer. A
|
||||||
.IR read (2)
|
.IR read (2)
|
||||||
of length greater than zero causes the process to wait until a newline
|
of a length greater than zero causes the process to wait until a newline
|
||||||
or a
|
or a
|
||||||
.LR ^D
|
.LR ^D
|
||||||
ends the buffer, and then returns as much of the buffer as the
|
ends the buffer, and then returns as much of the buffer as the
|
||||||
|
@ -141,11 +140,11 @@ to
|
||||||
.BR cons
|
.BR cons
|
||||||
causes the characters to be printed on the console screen.
|
causes the characters to be printed on the console screen.
|
||||||
.PP
|
.PP
|
||||||
When
|
When a
|
||||||
|
.I filename
|
||||||
|
is passed to
|
||||||
.IR kbdfs (8)
|
.IR kbdfs (8)
|
||||||
gets a
|
as its last argument, it reads and processes the
|
||||||
.I consfile
|
|
||||||
passed as its last argument, it reads and processes the
|
|
||||||
characters from that file and forwards them to the
|
characters from that file and forwards them to the
|
||||||
.BR cons
|
.BR cons
|
||||||
file with the same text processing applied as on keyboard input.
|
file with the same text processing applied as on keyboard input.
|
||||||
|
@ -153,7 +152,7 @@ This is used on serial consoles.
|
||||||
.SS Keyboard
|
.SS Keyboard
|
||||||
A read on the
|
A read on the
|
||||||
.BR kbd
|
.BR kbd
|
||||||
file returns a null terminated variable-length
|
file returns a null terminated, variable-length,
|
||||||
.SM UTF
|
.SM UTF
|
||||||
encoded string of all the keys that are currently pressed (key is
|
encoded string of all the keys that are currently pressed (key is
|
||||||
down) on the keyboard. This includes all keys that have a keyboard
|
down) on the keyboard. This includes all keys that have a keyboard
|
||||||
|
@ -162,17 +161,17 @@ is generated on each state change or at keyboard repeat rate and put
|
||||||
in a buffer. Each
|
in a buffer. Each
|
||||||
.IR read (2)
|
.IR read (2)
|
||||||
will return a single event or block until there are new events
|
will return a single event or block until there are new events
|
||||||
available. There always will be a null-byte at the end of the read
|
available. The read data is always terminated with a null-byte,
|
||||||
data, so when all keys are released (all keys are up), a single
|
so when all keys are released (all keys are up), a single
|
||||||
null-byte will be returned. New pressed keys are appended to the
|
null-byte will be returned. Newly pressed keys are appended to the
|
||||||
string at the end before the null-byte. Key releases remove the
|
string before the null-byte. Key releases remove the
|
||||||
character from the string. Change on modifier keys like
|
character from the string. Change on a modifier key like
|
||||||
.B Shift
|
.B Shift
|
||||||
or
|
or
|
||||||
.B Num
|
.B Num
|
||||||
will not change
|
will not change
|
||||||
the characters in the string of keys already pressed down, but take
|
the characters already present in the string, but will
|
||||||
effect on newly pressed keys.
|
take effect on newly pressed keys.
|
||||||
.PP
|
.PP
|
||||||
Raw scancodes can be written to the
|
Raw scancodes can be written to the
|
||||||
.BR kbin
|
.BR kbin
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue