diff options
author | cinap_lenrek <cinap_lenrek@rei2.9hal> | 2012-02-25 23:47:09 +0100 |
---|---|---|
committer | cinap_lenrek <cinap_lenrek@rei2.9hal> | 2012-02-25 23:47:09 +0100 |
commit | ce6b942ff12cbb7fe7da634004b8f7eed76eee3d (patch) | |
tree | ba230e02aae16a07ce7fa8d8b066876ec742d902 /sys/man/8/kbdfs | |
parent | f2b6ec3140935d88d065359619c04992939a1ddc (diff) |
vncs: /dev/kbd support by running kbdfs and forwarding keycodes thru kbdin
Diffstat (limited to 'sys/man/8/kbdfs')
-rw-r--r-- | sys/man/8/kbdfs | 37 |
1 files changed, 26 insertions, 11 deletions
diff --git a/sys/man/8/kbdfs b/sys/man/8/kbdfs index f97bf6f85..5327b68f2 100644 --- a/sys/man/8/kbdfs +++ b/sys/man/8/kbdfs @@ -20,6 +20,7 @@ kbdfs \- keyboard and console filesystem .B /dev/cons .B /dev/consctl .B /dev/kbd +.B /dev/kbdin .B /dev/kbin .B /dev/kbmap .fi @@ -34,6 +35,8 @@ translates raw keyboard scancodes from .IR kbd (3)) and its .BR kbin +and +.BR kbdin file and optionaly reads console input from .I consfile to provide initial keyboard and console input. @@ -42,6 +45,7 @@ It serves a one-level directory containing the files .BR cons, .BR consctl, .BR kbd, +.BR kbdin, .BR kbin and .BR kbmap. @@ -171,17 +175,9 @@ message is send when a key is pressed down and .B K when a key is released. The following string contains all the keycodes -of the keys that are currently pressed down in decomposed form. +of the keys that are currently pressed down in unshifted form. This includes all keys that have a keyboard mapping and modifier keys. -Some keys may produce multiple characters like -.B Shift -and -.B a -will produce -.B Shift, -.B a, -.B A -in the string. The string following the +The string following the .B c message contains the single character that would have been returned on the @@ -198,6 +194,25 @@ file disables input processing on the .BR cons file until it is closed again. .PP +.B K, +.B k +and +.B c +messages can be written to +.BR kbdin +and will forwarded to the reader of +.BR cons +or +.BR kbd. +Writing a +.B r +or +.B R +message followed by a +.SM UTF +encoded rune will simulate the press or +release of that particular rune. +.PP Raw scancodes can be written to the .BR kbin file for external keyboard input (used for USB keyboards). @@ -241,6 +256,6 @@ to represent a control character. .IR utf (6), .IR kbd (3) .SH FILES -.B /dev/lib/kbmap/* +.B /sys/lib/kbmap/* .SH SOURCE .B /sys/src/cmd/aux/kbdfs |