From: наб <nabijaczleweli@nabijaczleweli.xyz>
To: "Alejandro Colomar (man-pages)" <alx.manpages@gmail.com>
Cc: linux-man@vger.kernel.org, Jakub Wilk <jwilk@jwilk.net>
Subject: [PATCH v2 2/4] ioctl_console.2: use symbolic subcodes
Date: Fri, 2 Sep 2022 15:06:15 +0200 [thread overview]
Message-ID: <bcfd3c4588dee2e5578921ea611cd555df3fa534.1662123938.git.nabijaczleweli@nabijaczleweli.xyz> (raw)
In-Reply-To: <120d03d4df30e5cdd87a850abff5eae116ed8963.1662039344.git.nabijaczleweli@nabijaczleweli.xyz>
[-- Attachment #1: Type: text/plain, Size: 2944 bytes --]
Signed-off-by: Ahelenia Ziemiańska <nabijaczleweli@nabijaczleweli.xyz>
---
v2: uapi header noted
man2/ioctl_console.2 | 30 ++++++++++++++++++------------
1 file changed, 18 insertions(+), 12 deletions(-)
diff --git a/man2/ioctl_console.2 b/man2/ioctl_console.2
index 932be4e10..338c5e6c8 100644
--- a/man2/ioctl_console.2
+++ b/man2/ioctl_console.2
@@ -663,8 +663,14 @@ pointed to by
referred to here as the
.IR subcode .
These are legal only for the superuser or the owner of the current terminal.
-.TP
-.BR TIOCLINUX ", " subcode=0
+Symbolic
+.IR subcode s
+are available in
+.I <linux/tiocl.h>
+since
+Linux 2.5.71.
+.TP
+.BR TIOCLINUX ", " subcode = 0
Dump the screen.
Disappeared in Linux 1.1.92.
(With kernel 1.1.92 or later, read from
@@ -673,11 +679,11 @@ or
.I /dev/vcsaN
instead.)
.TP
-.BR TIOCLINUX ", " subcode=1
+.BR TIOCLINUX ", " subcode = 1
Get task information.
Disappeared in Linux 1.1.92.
.TP
-.BR TIOCLINUX ", " subcode=2
+.BR TIOCLINUX ", " subcode = TIOCL_SETSEL
Set selection.
.I argp
points to a
@@ -710,35 +716,35 @@ The indicated screen characters are highlighted and saved
in the static array sel_buffer in
.IR devices/char/console.c .
.TP
-.BR TIOCLINUX ", " subcode=3
+.BR TIOCLINUX ", " subcode = TIOCL_PASTESEL
Paste selection.
The characters in the selection buffer are
written to
.IR fd .
.TP
-.BR TIOCLINUX ", " subcode=4
+.BR TIOCLINUX ", " subcode = TIOCL_UNBLANKSCREEN
Unblank the screen.
.TP
-.BR TIOCLINUX ", " subcode=5
+.BR TIOCLINUX ", " subcode = TIOCL_SELLOADLUT
Sets contents of a 256-bit look up table defining characters in a "word",
for word-by-word selection.
(Since Linux 1.1.32.)
.TP
-.BR TIOCLINUX ", " subcode=6
+.BR TIOCLINUX ", " subcode = TIOCL_GETSHIFTSTATE
.I argp
points to a char which is set to the value of the kernel
variable
.IR shift_state .
(Since Linux 1.1.32.)
.TP
-.BR TIOCLINUX ", " subcode=7
+.BR TIOCLINUX ", " subcode = TIOCL_GETMOUSEREPORTING
.I argp
points to a char which is set to the value of the kernel
variable
.IR report_mouse .
(Since Linux 1.1.33.)
.TP
-.BR TIOCLINUX ", " subcode=8
+.BR TIOCLINUX ", " subcode = 8
Dump screen width and height, cursor position, and all the
character-attribute pairs.
(Kernels 1.1.67 through 1.1.91 only.
@@ -746,7 +752,7 @@ With kernel 1.1.92 or later, read from
.I /dev/vcsa*
instead.)
.TP
-.BR TIOCLINUX ", " subcode=9
+.BR TIOCLINUX ", " subcode = 9
Restore screen width and height, cursor position, and all the
character-attribute pairs.
(Kernels 1.1.67 through 1.1.91 only.
@@ -754,7 +760,7 @@ With kernel 1.1.92 or later, write to
.I /dev/vcsa*
instead.)
.TP
-.BR TIOCLINUX ", " subcode=10
+.BR TIOCLINUX ", " subcode = TIOCL_SETVESABLANK
Handles the Power Saving
feature of the new generation of monitors.
VESA screen blanking mode is set to
--
2.30.2
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]
next prev parent reply other threads:[~2022-09-02 13:29 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-09-01 13:35 [PATCH 1/4] ioctl_console.2: ffix наб
2022-09-01 13:36 ` [PATCH 2/4] ioctl_console.2: use symbolic subcodes наб
2022-09-01 14:51 ` Jakub Wilk
2022-09-01 13:36 ` [PATCH 3/4] ioctl_console.2: devices/char/console.c and sel_buffer don't exist anymore наб
2022-09-01 13:37 ` [PATCH 4/4] ioctl_console.2: document all extant TIOCLINUX subcodes as of 6.0 (2.6.17) наб
2022-09-01 15:13 ` Jakub Wilk
2022-09-01 21:28 ` [PATCH 1/4] ioctl_console.2: ffix Alejandro Colomar
2022-09-02 13:06 ` наб [this message]
2022-09-02 13:06 ` [PATCH v2 3/4] ioctl_console.2: devices/char/console.c and sel_buffer don't exist anymore наб
2022-09-02 13:07 ` [PATCH v2 4/4] ioctl_console.2: document all extant TIOCLINUX subcodes as of 6.0 (2.6.17) наб
2022-09-02 19:07 ` Alejandro Colomar
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=bcfd3c4588dee2e5578921ea611cd555df3fa534.1662123938.git.nabijaczleweli@nabijaczleweli.xyz \
--to=nabijaczleweli@nabijaczleweli.xyz \
--cc=alx.manpages@gmail.com \
--cc=jwilk@jwilk.net \
--cc=linux-man@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.