shithub: riscv

Download patch

ref: 8fa679d04171417d9420b91471cf45e148b4cc50
parent: 6861ffde749078ca42ac3fa873c5812ce03409dd
author: cinap_lenrek <cinap_lenrek@centraldogma>
date: Fri Jun 17 14:17:09 EDT 2011

manpages

--- a/sys/man/4/rio
+++ b/sys/man/4/rio
@@ -85,7 +85,11 @@
 .PP
 Some of these files supply virtual versions of services available from the underlying
 environment, in particular the character terminal files
-.IR cons (3),
+.B cons
+and
+.B kbd
+(see
+.IR kbdfs (8)),
 and the mouse files
 .IR mouse (3)
 and
@@ -102,8 +106,8 @@
 .TF window
 .TP
 .B cons
-is a virtual version of the standard terminal file
-.IR cons (3).
+a virtual version of the standard terminal file from
+.IR kbdfs (8).
 .I Rio
 supplies extra editing features and a scroll bar
 (see
@@ -110,7 +114,7 @@
 .IR rio (1)).
 .TP
 .B consctl
-controls interpretation of keyboard input.
+controls interpretation of console input.
 Writing strings to it sets these modes:
 .B rawon
 turns on raw mode;
@@ -123,6 +127,14 @@
 Closing the file makes the window revert to default state
 (raw off, hold off).
 .TP
+.B kbd
+represents the raw keyboard events (see
+.IR kbdfs(8))
+for the corresponding window. While open,
+navigation keys and input on the
+.IR cons
+file is disabled.
+.TP
 .B cursor
 Like
 .B mouse
@@ -402,6 +414,6 @@
 .IR rio (1),
 .IR draw (3),
 .IR mouse (3),
-.IR cons (3),
+.IR kbdfs (8),
 .IR event (2),
 .IR graphics (2).
--- a/sys/man/8/kbdfs
+++ b/sys/man/8/kbdfs
@@ -82,16 +82,21 @@
 Reading the
 .BR cons
 file returns characters typed on the console.  Normally, characters
-are buffered to enable erase and kill processing.  A control-U, 
+are buffered to enable erase and kill processing.  
+A control-U, 
 .LR ^U ,
 typed at the keyboard
-.I kills
+.I erases
 the current input line (removes all
 characters from the buffer of characters not yet read via cons), and a
 backspace
 .I erases
 the previous non-kill, non-erase character from the
-input buffer.  Killing and erasing only delete characters back to, but
+input buffer.
+The combination control-W,
+.LR ^W ,
+deletes the input last word.
+Killing and erasing only delete characters back to, but
 not including, the last newline.  Characters typed at the keyboard
 actually produce 16-bit runes (see
 .IR utf (6)),
@@ -123,7 +128,8 @@
 .IR "raw mode" :
 characters are not echoed as they are typed,
 backspace,
-.L ^U
+.L ^U,
+.L ^W
 and
 .L ^D
 are not treated specially, and characters are
@@ -177,7 +183,7 @@
 .B A
 in the string. The string following the
 .B c
-message contains the single character that would have been appeared
+message contains the single character that would have been returned
 on the
 .BR cons
 file instead. The