This commit is contained in:
cinap_lenrek 2011-06-17 18:17:09 +02:00
parent 6861ffde74
commit 8fa679d041
2 changed files with 28 additions and 10 deletions

View file

@ -85,7 +85,11 @@ appear in both those directories.
.PP .PP
Some of these files supply virtual versions of services available from the underlying Some of these files supply virtual versions of services available from the underlying
environment, in particular the character terminal files environment, in particular the character terminal files
.IR cons (3), .B cons
and
.B kbd
(see
.IR kbdfs (8)),
and the mouse files and the mouse files
.IR mouse (3) .IR mouse (3)
and and
@ -102,15 +106,15 @@ Other files are unique to
.TF window .TF window
.TP .TP
.B cons .B cons
is a virtual version of the standard terminal file a virtual version of the standard terminal file from
.IR cons (3). .IR kbdfs (8).
.I Rio .I Rio
supplies extra editing features and a scroll bar supplies extra editing features and a scroll bar
(see (see
.IR rio (1)). .IR rio (1)).
.TP .TP
.B consctl .B consctl
controls interpretation of keyboard input. controls interpretation of console input.
Writing strings to it sets these modes: Writing strings to it sets these modes:
.B rawon .B rawon
turns on raw mode; turns on raw mode;
@ -123,6 +127,14 @@ turns off hold mode.
Closing the file makes the window revert to default state Closing the file makes the window revert to default state
(raw off, hold off). (raw off, hold off).
.TP .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 .B cursor
Like Like
.B mouse .B mouse
@ -402,6 +414,6 @@ lp /dev/wsys/123/window
.IR rio (1), .IR rio (1),
.IR draw (3), .IR draw (3),
.IR mouse (3), .IR mouse (3),
.IR cons (3), .IR kbdfs (8),
.IR event (2), .IR event (2),
.IR graphics (2). .IR graphics (2).

View file

@ -82,16 +82,21 @@ otherwise on
Reading the Reading the
.BR cons .BR cons
file returns characters typed on the console. Normally, characters 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 , .LR ^U ,
typed at the keyboard typed at the keyboard
.I kills .I erases
the current input line (removes all the current input line (removes all
characters from the buffer of characters not yet read via cons), and a characters from the buffer of characters not yet read via cons), and a
backspace backspace
.I erases .I erases
the previous non-kill, non-erase character from the 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 not including, the last newline. Characters typed at the keyboard
actually produce 16-bit runes (see actually produce 16-bit runes (see
.IR utf (6)), .IR utf (6)),
@ -123,7 +128,8 @@ is in
.IR "raw mode" : .IR "raw mode" :
characters are not echoed as they are typed, characters are not echoed as they are typed,
backspace, backspace,
.L ^U .L ^U,
.L ^W
and and
.L ^D .L ^D
are not treated specially, and characters are are not treated specially, and characters are
@ -177,7 +183,7 @@ will produce
.B A .B A
in the string. The string following the in the string. The string following the
.B c .B c
message contains the single character that would have been appeared message contains the single character that would have been returned
on the on the
.BR cons .BR cons
file instead. The file instead. The