From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pf1-x435.google.com (mail-pf1-x435.google.com [IPv6:2607:f8b0:4864:20::435]) by sourceware.org (Postfix) with ESMTPS id B1CA63848032 for ; Fri, 4 Jun 2021 18:39:54 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org B1CA63848032 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=adacore.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=adacore.com Received: by mail-pf1-x435.google.com with SMTP id h12so5248296pfe.2 for ; Fri, 04 Jun 2021 11:39:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=adacore-com.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=Lhbn0YxeMJ/LGv9+eeKFkD32SMjpoAC1f647y9jSwwQ=; b=mSmK3a2tp0BTdg0R/wpijnlO/n73xx7j3O/zAnKDVcbo8D9MgVrJBLzQZdNkXREcWD Kxfpv24nXdK0fEJQzP6oq0kzSKkxDAobuvjvmLYI09RYTsF82bgxpzX5Bl+n1C9HG0Ye i8uOpXaPOS1AxUyY0Apv9BBkkWylqbig59mZDuU+ye1j5gnIk8SFliJVoFcrFuXQ6OV0 IAYKQyNquWwHqVf0VN/P8FH3SuTcn/90hzQRWb0l2x0CRXiM/phNCkAXGFDSrv1nIAae BzwFMEP99cj3egfYRIlYwM8mlNzBYb5I7ne0N4mBix57Zq9M221cdymm37XpFMLLi+zq x/0A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=Lhbn0YxeMJ/LGv9+eeKFkD32SMjpoAC1f647y9jSwwQ=; b=DoHw5NH3t49M6YQ+tRf6AlXxURlucbBzkP4Vl9rNhkVoD6ZZpJjSVXNQB/S2TE2GU8 ZmKQcACWZQk8gzytYQJcAIb+r7AwKIO07uMZWapTCrsp7Hp0Zrs90D3ccKClDBQiC+bN 05lnpxrbKaT9Sg+n6JZTDsqaPF7A7BYv9L4FFI+/MoVwsm/ipNPQ6Gx7U6ymDrt1mJzv qZPvm5LW+4GkhQ2doHIlfe8y56Wqubm3brbYQ3EEA4bJYAO5pYHeNi5vaiH8AXvbsAMA xQZxdFIHOscEcY3lFIWEICk/4eYdKyNkD2UUPz7PqieBVbnFDav4BmL6L2IRMTfnfbMU 4QCg== X-Gm-Message-State: AOAM530sujInYJaGEz0MwV4RvZxA9J+hHjAqfFiwZ0ylgdF77qmPpjiw sjV3P0n7gQ2may3reLyXgmQ/ X-Google-Smtp-Source: ABdhPJyA6RSoWNY/oMiqphhJhTI2MM0bKEeA20QlRSAdYjuZ4gBKDhhdrrFVl07vJBzdB6nv1Qpmog== X-Received: by 2002:a65:6209:: with SMTP id d9mr6445104pgv.39.1622831993813; Fri, 04 Jun 2021 11:39:53 -0700 (PDT) Received: from takamaka.home ([184.69.131.86]) by smtp.gmail.com with ESMTPSA id f3sm2244271pfd.21.2021.06.04.11.39.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 04 Jun 2021 11:39:53 -0700 (PDT) Received: by takamaka.home (Postfix, from userid 1000) id 2B94189CFF; Fri, 4 Jun 2021 11:39:52 -0700 (PDT) Date: Fri, 4 Jun 2021 11:39:52 -0700 From: Joel Brobecker To: Simon Marchi Cc: Pedro Alves , Hannes Domani , Hannes Domani via Gdb-patches , Tom Tromey , Joel Brobecker Subject: Re: [PATCHv3 1/2] Initial TUI mouse support Message-ID: <20210604183952.GC3009@adacore.com> References: <20210603151453.15248-1-ssbssa.ref@yahoo.de> <20210603151453.15248-1-ssbssa@yahoo.de> <87r1hhoi03.fsf@tromey.com> <1760297979.5212997.1622816480782@mail.yahoo.com> <0936428e-80c4-c192-cdfd-817ff9bcfab0@palves.net> <45415d6f-45f8-c709-5a21-dd2b02e724f3@polymtl.ca> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <45415d6f-45f8-c709-5a21-dd2b02e724f3@polymtl.ca> X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on server2.sourceware.org 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: , X-List-Received-Date: Fri, 04 Jun 2021 18:39:56 -0000 > Obviously the printing random characters is bad. But it's possible that > the not being able to select text is normal, as the application (GDB) > now supports mouse events. In some terminal emulators, you can press > shift while you click to say "I really want to select the display > characters, not send mouse events to the program". > > It's the same with other TUI apps for me: > > - tmux (with "set -g mouse on" in ~/.tmux.conf) > - tig (I don't remember if anything is needed to enable mouse support) > - weechat (I don't remember if anything is needed to enable mouse > support) FWIW, "vim" behaves like that too. That being said, if we go that route, we should probably have that mentioned in the manual and in the NEWS file. -- Joel