public inbox for gdb-patches@sourceware.org
 help / color / mirror / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: Pedro Alves <pedro@palves.net>
Cc: gdb-patches@sourceware.org
Subject: Re: [PATCH] Document TUI mouse support in the manual & NEWS
Date: Fri, 18 Jun 2021 10:15:12 +0300	[thread overview]
Message-ID: <834kdvzlrz.fsf@gnu.org> (raw)
In-Reply-To: <0bbdcd46-f4fd-0fd7-3957-492751e0ac9e@palves.net> (message from Pedro Alves on Thu, 17 Jun 2021 21:50:02 +0100)

> From: Pedro Alves <pedro@palves.net>
> Cc: gdb-patches@sourceware.org
> Date: Thu, 17 Jun 2021 21:50:02 +0100
> 
> On 2021-06-17 2:17 p.m., Eli Zaretskii wrote:
> >> From: Pedro Alves <pedro@palves.net>
> >> Date: Thu, 17 Jun 2021 13:23:00 +0100
> >>
> >> +On most terminals, pressing and holding the @key{SHIFT} key on your
> >> +keyboard temporarily disables the terminal's mouse protocol, and let's
> >> +you select/paste text with the mouse.                            ^^^^^
> > 
> > Typo: should be "lets".
> > 
> > And I admit I'm confused by the above text: if one can select with the
> > mouse, why are we saying that "mouse protocol is disabled"?
> 
> How about this then:
> 
> "During normal operation, the TUI uses the terminal's mouse protocol
> and all mouse input is consumed by the TUI, which means that you
> cannot use the mouse to select/paste text, which is a terminal
> function, not a TUI function.  On most terminals however, pressing and
> holding the @key{SHIFT} key on your keyboard temporarily disables the
> terminal's mouse protocol, which then let's you select/paste text with
> the mouse."

AFAIU, what is missing here is the fact that "select/paste text with
the mouse" copies/pastes text to/from the _terminal_'s selection
buffer (as opposed to the GDB's TUI buffer).  I think your original
text will be fine if you mention this explicitly.  IOW, we need to say
that this copy/paste bypasses GDB and goes into the terminal's
text-selection functionality.

Thanks.

  parent reply	other threads:[~2021-06-18  7:15 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-06-17 12:23 Pedro Alves
2021-06-17 13:17 ` Eli Zaretskii
2021-06-17 20:50   ` Pedro Alves
2021-06-17 21:05     ` Pedro Alves
2021-06-18  7:15     ` Eli Zaretskii [this message]
2021-06-27 17:44       ` [PATCH] Document TUI improvements in the manual & NEWS (was: Re: [PATCH] Document TUI mouse support in the manual & NEWS) Pedro Alves
2021-06-27 19:14         ` Eli Zaretskii
2021-07-02 15:31           ` Pedro Alves

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=834kdvzlrz.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=gdb-patches@sourceware.org \
    --cc=pedro@palves.net \
    /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;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).