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