Re: [PATCH] man/man2/ioctl_vt.2: document VT_GETCONSIZECSRPOS
From: Alejandro Colomar <alx@kernel.org>
Date: 2025-06-11 08:23:41
Hi Nicolas, On Sat, Jun 07, 2025 at 04:01:51PM -0400, Nicolas Pitre wrote:
Corresponding code is in drivers/tty/vt/vt_ioctl.c. New in Linux v6.16. Signed-off-by: Nicolas Pitre <redacted>
Patch applied. Thanks! <https://www.alejandro-colomar.es/src/alx/linux/man-pages/man-pages.git/commit/?h=contrib&id=2aaab85581f16c50858b62fb0eca848d2fb08495> Cheers, Alex
quoted hunk ↗ jump to hunk
--- man/man2/ioctl_vt.2 | 18 ++++++++++++++++++ man/man2const/VT_GETCONSIZECSRPOS.2const | 1 + 2 files changed, 19 insertions(+) create mode 100644 man/man2const/VT_GETCONSIZECSRPOS.2constdiff --git a/man/man2/ioctl_vt.2 b/man/man2/ioctl_vt.2 index afce12936..05b4637f1 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, anddiff --git a/man/man2const/VT_GETCONSIZECSRPOS.2const b/man/man2const/VT_GETCONSIZECSRPOS.2const new file mode 100644 index 000000000..5c2119543 --- /dev/null +++ b/man/man2const/VT_GETCONSIZECSRPOS.2const@@ -0,0 +1 @@ +.so man2/ioctl_vt.2-- 2.49.0
-- <https://www.alejandro-colomar.es/>
Attachments
- signature.asc [application/pgp-signature] 833 bytes