From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id AaNADbBTumDkRwAAWB0awg (envelope-from ) for ; Fri, 04 Jun 2021 12:24:16 -0400 Received: by simark.ca (Postfix, from userid 112) id 2846E1F163; Fri, 4 Jun 2021 12:24:16 -0400 (EDT) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on simark.ca X-Spam-Level: X-Spam-Status: No, score=-0.6 required=5.0 tests=MAILING_LIST_MULTI, RDNS_DYNAMIC,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.2 Received: from sourceware.org (ip-8-43-85-97.sourceware.org [8.43.85.97]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by simark.ca (Postfix) with ESMTPS id 1C11B1E01F for ; Fri, 4 Jun 2021 12:24:15 -0400 (EDT) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 8809A399C8A5 for ; Fri, 4 Jun 2021 16:24:14 +0000 (GMT) Received: from mail-wm1-f48.google.com (mail-wm1-f48.google.com [209.85.128.48]) by sourceware.org (Postfix) with ESMTPS id 89792384800A for ; Fri, 4 Jun 2021 16:23:54 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 89792384800A Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=palves.net Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-wm1-f48.google.com with SMTP id f20so1501037wmg.0 for ; Fri, 04 Jun 2021 09:23:54 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:from:to:references:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=7oB9YjK8gJKyFL4/UVuRWkWiNys44+QlDqE2YhGF6Ss=; b=eBST0aT/L4IAB7A28XqGb4syOmzEM88tmhv1f/Lvd+Amrejm69VE9RGEAK8EEZ8kqH 8d+c9uPDalS4TKS4MGZNbTeGQ6rGm9fJtDzDQdZf9LufCNPGLtWBfp+Wh/yEXWsgVqZM 6nW5o91cDg/X3E62C+EfgUFLxSZLPdEiVrF5XO4/bHfd+UkAQn1J1pjP+5enCPR93Bft nMojc4p8FXWsA9DSf8SPnD9b1s7qvi7OW2L8tGYIVGjy5r+Vf5AnL2vQBMITijbnL54Z XzkjkJZNNOJI3XGun5Rd88xji3gX7zUleAHLt2SiwYD5rrct4orH1O0CgKctTsWuI+pz VbJw== X-Gm-Message-State: AOAM5314oH/UbkRBMnmhkcAxHgQWD9Krhnw700Z8C7XVCk3Or1XsKvTY V3al9Lx/q1VQIJRd1tdbAV4= X-Google-Smtp-Source: ABdhPJx5QRg3p/+jVrazvhcZHp6k1t4RIgL7G9SPSmKMF58tR6vz0nUFOEMp3wat+KdxvKqCl+NuwQ== X-Received: by 2002:a7b:c056:: with SMTP id u22mr4411970wmc.181.1622823833554; Fri, 04 Jun 2021 09:23:53 -0700 (PDT) Received: from ?IPv6:2001:8a0:f932:6a00:46bc:d03b:7b3a:2227? ([2001:8a0:f932:6a00:46bc:d03b:7b3a:2227]) by smtp.gmail.com with ESMTPSA id n9sm8284955wrt.81.2021.06.04.09.23.51 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 04 Jun 2021 09:23:52 -0700 (PDT) Subject: Re: [PATCHv3 1/2] Initial TUI mouse support From: Pedro Alves To: Hannes Domani , Hannes Domani via Gdb-patches , Tom Tromey References: <20210603151453.15248-1-ssbssa.ref@yahoo.de> <20210603151453.15248-1-ssbssa@yahoo.de> <87r1hhoi03.fsf@tromey.com> <1760297979.5212997.1622816480782@mail.yahoo.com> <899939356.5239586.1622822763347@mail.yahoo.com> Message-ID: <8a7d0e0c-8ac8-6f75-6049-24baa67c38cb@palves.net> Date: Fri, 4 Jun 2021 17:23:50 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.10.2 MIME-Version: 1.0 In-Reply-To: <899939356.5239586.1622822763347@mail.yahoo.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit X-BeenThere: gdb-patches@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gdb-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: gdb-patches-bounces+public-inbox=simark.ca@sourceware.org Sender: "Gdb-patches" On 2021-06-04 5:06 p.m., Hannes Domani wrote: > Am Freitag, 4. Juni 2021, 17:20:44 MESZ hat Pedro Alves Folgendes geschrieben: >> >> Don't we need a NEWS entry, though? > > I never think of NEWS. > > See at the end what I came up with, maybe the phrasing could need some > improvement. > > > From 95c7890b45cbfb80682451962f5e57f3eef95a03 Mon Sep 17 00:00:00 2001 > From: Hannes Domani > Date: Fri, 4 Jun 2021 17:58:15 +0200 > Subject: [PATCH] Mention mouse support in NEWS > > gdb/ChangeLog: > > 2021-06-04  Hannes Domani  > >     * NEWS: Mention mouse support. > --- >  gdb/NEWS | 3 +++ >  1 file changed, 3 insertions(+) > > diff --git a/gdb/NEWS b/gdb/NEWS > index ab678acec8b..8c876e71e63 100644 > --- a/gdb/NEWS > +++ b/gdb/NEWS > @@ -75,6 +75,9 @@ >    and "-eiex" that allow options (that would normally appear in a >    gdbearlyinit file) to be passed on the command line. >   > +* TUI windows now support mouse actions.  The mouse wheel scrolls the > +  appropriate window, and Python TUI windows can receive mouse click events. > + I think you should (also or in alternative) mention the Python bits in the "Python API" section. It would be nice if we had a section in the manual for the TUI mouse too. I suspect we'll end up with some settings/knobs to configure mouse support, and that'd be the place to add them. We can start small, IMO. How about this? From: Pedro Alves Date: 2021-06-04 17:12:41 +0100 Document TUI mouse support in the manual gdb/doc/ChangeLog: yyyy-mm-dd Pedro Alves * gdb.texinfo (TUI): : New node/section. --- gdb/doc/gdb.texinfo | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/gdb/doc/gdb.texinfo b/gdb/doc/gdb.texinfo index 90d827a50e7..486df2ec5f4 100644 --- a/gdb/doc/gdb.texinfo +++ b/gdb/doc/gdb.texinfo @@ -28372,6 +28372,7 @@ enable} or @kbd{C-x C-a}. @xref{TUI Commands, ,TUI Commands}, and * TUI Overview:: TUI overview * TUI Keys:: TUI key bindings * TUI Single Key Mode:: TUI single key mode +* TUI Mouse Support:: TUI mouse support * TUI Commands:: TUI-specific commands * TUI Configuration:: TUI configuration variables @end menu @@ -28661,6 +28662,13 @@ If @value{GDBN} was built with Readline 8.0 or later, the TUI SingleKey keymap will be named @samp{SingleKey}. This can be used in @file{.inputrc} to add additional bindings to this keymap. +@node TUI Mouse Support +@section TUI Mouse Support +@cindex TUI mouse support + +The TUI supports mouse actions. You can click on TUI windows to +select them, and the mouse wheel scrolls the appropriate window. + @node TUI Commands @section TUI-specific Commands @cindex TUI commands