From: Jared Finder <jared@finder.org>
To: "Günther Noack" <gnoack3000@gmail.com>
Cc: "Alexjandro Colomar" <alx@kernel.org>,
linux-man@vger.kernel.org, "Hanno Böck" <hanno@hboeck.de>,
"Jann Horn" <jannh@google.com>,
"Jiri Slaby" <jirislaby@kernel.org>,
jwilk@jwilk.net
Subject: Re: [PATCH man v3 2/2] TIOCLINUX.2const: Document missing TIOCL_SETSEL selection modes
Date: Sun, 02 Mar 2025 14:49:18 -0800 [thread overview]
Message-ID: <f9e457a0a6f5fa02eff3ee61a1f4fe84@finder.org> (raw)
In-Reply-To: <20250302194331.5135-6-gnoack3000@gmail.com>
On 2025-03-02 11:43, Günther Noack wrote:
> Documents the following TIOCL_SETSEL sub-operations:
>
> * TIOCL_SELPOINTER
> * TIOCL_SELCLEAR
> * TIOCL_SELMOUSEREPORT
>
> These previously undocumented selection modes for the Linux console
> are implemented in drivers/tty/vt/selection.c. The name "selection
> mode" is slightly misleading as not all of them actually manipulate
> the kernel's mouse selection buffer.
>
> Includes clarified semantics pointed out by Jared Finder.
>
> Cc: Jared Finder <jared@finder.org>
> Cc: Hanno Böck <hanno@hboeck.de>
> Cc: Jann Horn <jannh@google.com>
> Cc: Jiri Slaby <jirislaby@kernel.org>
> Cc: jwilk@jwilk.net
> Signed-off-by: Günther Noack <gnoack3000@gmail.com>
> ---
> man/man2const/TIOCLINUX.2const | 34 ++++++++++++++++++++++++++++++++++
> 1 file changed, 34 insertions(+)
>
> diff --git a/man/man2const/TIOCLINUX.2const
> b/man/man2const/TIOCLINUX.2const
> index f2c8d0720..f1021ce99 100644
> --- a/man/man2const/TIOCLINUX.2const
> +++ b/man/man2const/TIOCLINUX.2const
> @@ -84,6 +84,40 @@ Select line-by-line,
> expanding the selection outwards to select full lines.
> The indicated screen characters are highlighted
> and saved in a kernel buffer.
> +.TP
> +.B TIOCL_SELPOINTER
> +Show the pointer at position
> +.RI ( xs ,\~ ys )
> +or
> +.RI ( xe ,\~ ye ),
> +whichever is greater.
> +.TP
> +.B TIOCL_SELCLEAR
> +Remove the current selection highlight, if any,
> +from the console holding the selection.
> +.IP
> +This does not affect the stored selected text.
> +.TP
> +.B TIOCL_SELMOUSEREPORT
> +Make the terminal report
> +.RI ( xs ,\~ ys )
> +as the current mouse location
> +using the
> +.BR xterm (1)
> +mouse tracking protocol
> +(see
> +.BR console_codes (4)).
> +The lower 4 bits of
> +.I sel_mode
> +.RB ( TIOCL_SELBUTTONMASK )
> +indicate the desired button press and
> +modifier key information for the mouse event.
> +.\"
> <https://invisible-island.net/xterm/ctlseqs/ctlseqs.html#h3-Normal-tracking-mode>
> +.IP
> +If mouse reporting is not enabled for the terminal,
> +this operation yields an
> +.B EINVAL
> +error.
> .RE
> .IP
> Since Linux 6.7, using this subcode requires the
No additional comments from me, this looks good.
-- MJF
next prev parent reply other threads:[~2025-03-02 22:49 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-03-02 19:43 [PATCH man v3 0/2] TIOCLINUX.2const: Document TIOCL_SETSEL selection modes Günther Noack
2025-03-02 19:43 ` [PATCH man v3 1/2] TIOCLINUX.2const: Restructure documentation for " Günther Noack
2025-03-02 22:50 ` Jared Finder
2025-03-03 8:26 ` Alejandro Colomar
2025-03-02 19:43 ` [PATCH man v3 2/2] TIOCLINUX.2const: Document missing " Günther Noack
2025-03-02 22:49 ` Jared Finder [this message]
2025-03-17 13:23 ` [PATCH man v3 0/2] TIOCLINUX.2const: Document " Alejandro Colomar
2025-03-17 17:43 ` G. Branden Robinson
2025-03-22 19:37 ` Alejandro Colomar
2025-03-26 4:48 ` Jared Finder
2025-03-26 8:58 ` Alejandro Colomar
2025-03-30 10:58 ` Günther Noack
2025-03-30 11: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=f9e457a0a6f5fa02eff3ee61a1f4fe84@finder.org \
--to=jared@finder.org \
--cc=alx@kernel.org \
--cc=gnoack3000@gmail.com \
--cc=hanno@hboeck.de \
--cc=jannh@google.com \
--cc=jirislaby@kernel.org \
--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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox