diff --git a/sys/man/4/rio b/sys/man/4/rio index 1bcd94362..ad1e4f566 100644 --- a/sys/man/4/rio +++ b/sys/man/4/rio @@ -85,7 +85,11 @@ appear in both those directories. .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,15 +106,15 @@ Other files are unique to .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 .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 @@ turns off hold mode. 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 @@ lp /dev/wsys/123/window .IR rio (1), .IR draw (3), .IR mouse (3), -.IR cons (3), +.IR kbdfs (8), .IR event (2), .IR graphics (2). diff --git a/sys/man/8/kbdfs b/sys/man/8/kbdfs index 733953bdf..f97bf6f85 100644 --- a/sys/man/8/kbdfs +++ b/sys/man/8/kbdfs @@ -82,16 +82,21 @@ otherwise on 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 @@ is in .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 @@ will produce .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