aboutsummaryrefslogtreecommitdiffstats
diff options
authorNicolas Pitre <npitre@baylibre.com>2025-06-07 16:01:51 -0400
committerAlejandro Colomar <alx@kernel.org>2025-06-11 13:56:39 +0200
commit9fbe8215606e577f66aea30b1106815e7143bdce (patch)
treed48554c73ceb7cfe4533769504d88efb3d2c184d
parent57013e97dbc677245c67fed6c838e5fce0413ca7 (diff)
downloadman-pages-9fbe8215606e577f66aea30b1106815e7143bdce.tar.gz
man/man2/ioctl_vt.2: Document VT_GETCONSIZECSRPOS
Corresponding code is in drivers/tty/vt/vt_ioctl.c. New in Linux v6.16. Signed-off-by: Nicolas Pitre <npitre@baylibre.com> Message-ID: <4n723o1q-pr52-319q-nsr7-6442387s12s2@onlyvoer.pbz> Signed-off-by: Alejandro Colomar <alx@kernel.org>
-rw-r--r--man/man2/ioctl_vt.218
-rw-r--r--man/man2const/VT_GETCONSIZECSRPOS.2const1
2 files changed, 19 insertions, 0 deletions
diff --git a/man/man2/ioctl_vt.2 b/man/man2/ioctl_vt.2
index afce129366..05b4637f17 100644
--- a/man/man2/ioctl_vt.2
+++ b/man/man2/ioctl_vt.2
@@ -156,6 +156,24 @@ Note that this does not change the videomode.
See
.BR resizecons (8).
(Since Linux 1.3.3.)
+.TP
+.B VT_GETCONSIZECSRPOS
+Get console size and cursor position.
+.I argp
+points to a
+.IP
+.in +4n
+.EX
+struct vt_consizecsrpos {
+ __u16 con_rows; /* number of console rows */
+ __u16 con_cols; /* number of console columns */
+ __u16 csr_row; /* current cursor's row */
+ __u16 csr_col; /* current cursor's column */
+};
+.EE
+.in
+.IP
+(Since Linux 6.16.)
.SH RETURN VALUE
On success, 0 is returned (except where indicated).
On failure, \-1 is returned, and
diff --git a/man/man2const/VT_GETCONSIZECSRPOS.2const b/man/man2const/VT_GETCONSIZECSRPOS.2const
new file mode 100644
index 0000000000..5c2119543d
--- /dev/null
+++ b/man/man2const/VT_GETCONSIZECSRPOS.2const
@@ -0,0 +1 @@
+.so man2/ioctl_vt.2