console_ioctl.4: wfix

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
Michael Kerrisk 2016-07-16 12:42:06 +02:00
parent 40c7eed4ef
commit 5231e1bb72
1 changed files with 26 additions and 26 deletions

View File

@ -71,10 +71,10 @@ However, if a higher order bit is set,
the LEDs revert to normal: displaying the state of the
keyboard functions of caps lock, num lock, and scroll lock.
.LP
Before 1.1.54, the LEDs just reflected the state of the corresponding
Before Linux 1.1.54, the LEDs just reflected the state of the corresponding
keyboard flags, and KDGETLED/KDSETLED would also change the keyboard
flags.
Since 1.1.54 the LEDs can be made to display arbitrary
Since Linux 1.1.54 the LEDs can be made to display arbitrary
information, but by default they display the keyboard flags.
The following two ioctls are used to access the keyboard flags.
.TP
@ -85,7 +85,7 @@ points to a char which is set to the flag state.
The low order three bits (mask 0x7) get the current flag state,
and the low order bits of the next nibble (mask 0x70) get
the default flag state.
(Since 1.1.54.)
(Since Linux 1.1.54.)
.TP
.B KDSKBLED
Set keyboard flags CapsLock, NumLock, ScrollLock (not lights).
@ -94,7 +94,7 @@ has the desired flag state.
The low order three bits (mask 0x7) have the flag state,
and the low order bits of the next nibble (mask 0x70) have
the default flag state.
(Since 1.1.54.)
(Since Linux 1.1.54.)
.TP
.B KDGKBTYPE
Get keyboard type.
@ -150,7 +150,7 @@ For example,
.I argp
= (125<<16) + 0x637 would specify
the beep normally associated with a ctrl-G.
(Thus since 0.99pl1; broken in 2.1.49-50.)
(Thus since Linux 0.99pl1; broken in Linux 2.1.49-50.)
.TP
.B KIOCSOUND
Start or stop sound generation.
@ -169,7 +169,7 @@ Get the current default color map from kernel.
.I argp
points to
a 48-byte array.
(Since 1.3.3.)
(Since Linux 1.3.3.)
.TP
.B PIO_CMAP
Change the default text-mode color map.
@ -182,7 +182,7 @@ The default colors are, in order: black, dark red, dark
green, brown, dark blue, dark purple, dark cyan, light grey, dark
grey, bright red, bright green, yellow, bright blue, bright purple,
bright cyan and white.
(Since 1.3.3.)
(Since Linux 1.3.3.)
.TP
.B GIO_FONT
Gets 256-character screen font in expanded form.
@ -220,7 +220,7 @@ buffer is untouched and
.I errno
is set to
.BR ENOMEM .
(Since 1.3.1.)
(Since Linux 1.3.1.)
.TP
.B PIO_FONT
Sets 256-character screen font.
@ -259,7 +259,7 @@ If necessary, the screen will be appropriately resized, and
.B SIGWINCH
sent to the appropriate processes.
This call also invalidates the Unicode mapping.
(Since 1.3.1.)
(Since Linux 1.3.1.)
.TP
.B PIO_FONTRESET
Resets the screen font, size and Unicode mapping to the bootup
@ -267,7 +267,7 @@ defaults.
.I argp
is unused, but should be set to NULL to
ensure compatibility with future versions of Linux.
(Since 1.3.28.)
(Since Linux 1.3.28.)
.TP
.B GIO_SCRNMAP
Get screen mapping from kernel.
@ -288,7 +288,7 @@ which is loaded with the
Unicodes each character represent.
A special set of Unicodes,
starting at U+F000, are used to represent "direct to font" mappings.
(Since 1.3.1.)
(Since Linux 1.3.1.)
.TP
.B PIO_SCRNMAP
Loads the "user definable" (fourth) table in the kernel which maps
@ -303,7 +303,7 @@ bytes into Unicodes, which are then translated into screen symbols
according to the currently loaded Unicode-to-font map.
Special Unicodes starting at U+F000 can be used to map directly to the font
symbols.
(Since 1.3.1.)
(Since Linux 1.3.1.)
.TP
.B GIO_UNIMAP
Get Unicode-to-font mapping from kernel.
@ -332,14 +332,14 @@ struct unipair {
.fi
.in
(Since 1.1.92.)
(Since Linux 1.1.92.)
.TP
.B PIO_UNIMAP
Put unicode-to-font mapping in kernel.
.I argp
points to a
.IR "struct unimapdesc" .
(Since 1.1.92)
(Since Linux 1.1.92)
.TP
.B PIO_UNIMAPCLR
Clear table, possibly advise hash algorithm.
@ -356,7 +356,7 @@ struct unimapinit {
.fi
.in
(Since 1.1.92.)
(Since Linux 1.1.92.)
.TP
.B KDGKBMODE
Gets current keyboard mode.
@ -517,14 +517,14 @@ For 1 <=
.I scancode
<= 88,
.IR keycode == scancode .)
(Since 1.1.63.)
(Since Linux 1.1.63.)
.TP
.B KDSETKEYCODE
Write kernel keycode table entry.
.I argp
points to a
.IR "struct kbkeycode" .
(Since 1.1.63.)
(Since Linux 1.1.63.)
.TP
.B KDSIGACCEPT
The calling process indicates its willingness to accept the signal
@ -619,7 +619,7 @@ has been activated.
.B VT_DISALLOCATE
Deallocate the memory associated with vt
.IR argp .
(Since 1.1.54.)
(Since Linux 1.1.54.)
.TP
.B VT_RESIZE
Set the kernel's idea of screensize.
@ -639,7 +639,7 @@ struct vt_sizes {
Note that this does not change the videomode.
See
.BR resizecons (8).
(Since 1.1.54.)
(Since Linux 1.1.54.)
.TP
.B VT_RESIZEX
Set the kernel's idea of various screen parameters.
@ -668,7 +668,7 @@ multiple parameters are set, they must be self-consistent.
Note that this does not change the videomode.
See
.BR resizecons (8).
(Since 1.3.3.)
(Since Linux 1.3.3.)
.PP
The action of the following ioctls depends on the first byte in the struct
pointed to by
@ -679,7 +679,7 @@ These are legal only for the superuser or the owner of the current terminal.
.TP
.B "TIOCLINUX, subcode=0"
Dump the screen.
Disappeared in 1.1.92. (With kernel 1.1.92 or later, read from
Disappeared in Linux 1.1.92. (With kernel 1.1.92 or later, read from
.I /dev/vcsN
or
.I /dev/vcsaN
@ -687,7 +687,7 @@ instead.)
.TP
.B "TIOCLINUX, subcode=1"
Get task information.
Disappeared in 1.1.92.
Disappeared in Linux 1.1.92.
.TP
.B "TIOCLINUX, subcode=2"
Set selection.
@ -734,21 +734,21 @@ Unblank the screen.
.B "TIOCLINUX, subcode=5"
Sets contents of a 256-bit look up table defining characters in a "word",
for word-by-word selection.
(Since 1.1.32.)
(Since Linux 1.1.32.)
.TP
.B "TIOCLINUX, subcode=6"
.I argp
points to a char which is set to the value of the kernel
variable
.IR shift_state .
(Since 1.1.32.)
(Since Linux 1.1.32.)
.TP
.B "TIOCLINUX, subcode=7"
.I argp
points to a char which is set to the value of the kernel
variable
.IR report_mouse .
(Since 1.1.33.)
(Since Linux 1.1.33.)
.TP
.B "TIOCLINUX, subcode=8"
Dump screen width and height, cursor position, and all the
@ -792,7 +792,7 @@ or if you want your monitor to power down immediately when the
blank_timer times out, then you choose this option.
.RI ( Caution:
Powering down frequently will damage the monitor.)
(Since 1.1.76.)
(Since Linux 1.1.76.)
.RE
.SH RETURN VALUE
On success, 0 is returned.