public inbox for linux-man@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH man v3 0/2] TIOCLINUX.2const: Document TIOCL_SETSEL selection modes
@ 2025-03-02 19:43 Günther Noack
  2025-03-02 19:43 ` [PATCH man v3 1/2] TIOCLINUX.2const: Restructure documentation for " Günther Noack
                   ` (2 more replies)
  0 siblings, 3 replies; 13+ messages in thread
From: Günther Noack @ 2025-03-02 19:43 UTC (permalink / raw)
  To: Alexjandro Colomar
  Cc: linux-man, Günther Noack, Jared Finder, Hanno Böck

Hi!

TIOCLINUX's TIOCL_SETSEL sub-code has another layer of sub-operations,
called "selection modes" (even though not all of them actually deal
with the mouse selection).

Going forward, the CAP_SYS_ADMIN requirement will be different for
some of these selection modes, which prompted me to at least list the
different selection modes with a short description.  I am leaving
CAP_SYS_ADMIN documentation as it is for now and will send another
patch once these semantics are finalized [1] [2].

Thanks,
–Günther

[1] <https://lore.kernel.org/all/20250221.0a947528d8f3@gnoack.org/>
[2] <https://lore.kernel.org/all/20250223205449.7432-2-gnoack3000@gmail.com/>

History:

V2:
 * Split into a "restructuring" and a "new documentation" commit
 * Use non-breaking space \~
 * Put URIs in <>
 * Added a helpful link to console_codes(4) regarding mouse reporting

V3:
 * Corrections and clarifications for various selection modes
   as suggested by Jared Finder. (Thanks!)

Günther Noack (2):
  TIOCLINUX.2const: Restructure documentation for TIOCL_SETSEL selection
    modes
  TIOCLINUX.2const: Document missing TIOCL_SETSEL selection modes

 man/man2const/TIOCLINUX.2const | 59 +++++++++++++++++++++++++++++++---
 1 file changed, 54 insertions(+), 5 deletions(-)

Range-diff against v2:
1:  5eb2a603e ! 1:  d07edb528 TIOCLINUX.2const: Restructure documentation for TIOCL_SETSEL selection modes
    @@ Commit message
     
         * Indent the documented selection modes into tagged paragraphs.
         * Document constants from the header file (tiocl.h) instead of numbers.
    +    * Clarify expansion semantics as suggested by Jared Finder.
     
         Signed-off-by: Günther Noack <gnoack3000@gmail.com>
     
    @@ man/man2const/TIOCLINUX.2const: are the ending
     +and saved in a kernel buffer.
     +.TP
     +.B TIOCL_SELWORD
    -+Select word-by-word.
    ++Select word-by-word,
    ++expanding the selection outwards to align with word boundaries.
     +The indicated screen characters are highlighted
     +and saved in a kernel buffer.
     +.TP
     +.B TIOCL_SELLINE
    -+Select line-by-line.
    ++Select line-by-line,
    ++expanding the selection outwards to select full lines.
     +The indicated screen characters are highlighted
     +and saved in a kernel buffer.
     +.RE
2:  2f39d5cf9 ! 2:  59f217fb0 TIOCLINUX.2const: Document missing TIOCL_SETSEL selection modes
    @@ Commit message
         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>
    @@ Commit message
         Signed-off-by: Günther Noack <gnoack3000@gmail.com>
     
      ## man/man2const/TIOCLINUX.2const ##
    -@@ man/man2const/TIOCLINUX.2const: and saved in a kernel buffer.
    - Select line-by-line.
    +@@ man/man2const/TIOCLINUX.2const: 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 ( xe ,\~ ye ).
    ++.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
-- 
2.48.1


^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2025-03-30 11:07 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox