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>
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
--- /dev/null
+.so man2/ioctl_vt.2