From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id krryCu67umD9VAAAWB0awg (envelope-from ) for ; Fri, 04 Jun 2021 19:49:02 -0400 Received: by simark.ca (Postfix, from userid 112) id 1E2BB1F163; Fri, 4 Jun 2021 19:49:02 -0400 (EDT) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on simark.ca X-Spam-Level: X-Spam-Status: No, score=-1.0 required=5.0 tests=MAILING_LIST_MULTI autolearn=ham autolearn_force=no version=3.4.2 Received: from sourceware.org (server2.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 34C5F1E54D for ; Fri, 4 Jun 2021 19:48:57 -0400 (EDT) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 25D1C3892475 for ; Fri, 4 Jun 2021 23:48:56 +0000 (GMT) Received: from mail-wm1-f43.google.com (mail-wm1-f43.google.com [209.85.128.43]) by sourceware.org (Postfix) with ESMTPS id A3B443858018 for ; Fri, 4 Jun 2021 23:48:38 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org A3B443858018 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-f43.google.com with SMTP id f20so2038346wmg.0 for ; Fri, 04 Jun 2021 16:48:38 -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:cc:references:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=8T3frFIUdvDjYbEUK0V92ERb/weOmnKPuNKAUHPKkZg=; b=V9npcdWKM/HOig7Xm6KLDaQTa7ZiCOPNLadyOw+lAdla4gGHyLid9+we4NQgGCUuxZ BTUf1+4L3qRpJPNqOcOjYTIAA73muZ6qWyyypUDyCTw0q94gAFYB/ldt1Frr8Zw3NPPH 8kmPUCvAt36VK9Fw3I5XYYuDGzWWHfaGmTgvsSDpO+uOq85j2kTz8jzGlmGUCvp9CgZr 2Poov3lsvtSTNodrsM0lOZcNfYMhKYXOoqrS8+Y+YEXTbxRSiyqn5NKa8YjySv73tBlp HtQ4rMT5P2wGDjxBtkf0n/Kr9Z95EdtftqzX54SEb4W22sfyce97kK1sj9IOFUvCO5Eb QrYw== X-Gm-Message-State: AOAM5332wgmk1ZWCkR6Fa6D7P7q453FKKzhVyo7KtOshCKPbrWIp6tzx 7K7ee4Wasl0B83HpOgPRLKM= X-Google-Smtp-Source: ABdhPJwhTshO58gGuDz1OGp5jpawu9aNOgGYASx+WR0ezzlRvum82WRI0ujNVFO1Zxj4JbX64UIU+g== X-Received: by 2002:a1c:193:: with SMTP id 141mr5782009wmb.106.1622850517702; Fri, 04 Jun 2021 16:48:37 -0700 (PDT) Received: from ?IPv6:2001:8a0:f932:6a00:6b6e:c7b6:c5a7:aac3? ([2001:8a0:f932:6a00:6b6e:c7b6:c5a7:aac3]) by smtp.gmail.com with ESMTPSA id w8sm8567829wre.70.2021.06.04.16.48.36 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 04 Jun 2021 16:48:36 -0700 (PDT) Subject: Re: [PATCHv3 1/2] Initial TUI mouse support From: Pedro Alves To: 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> <0936428e-80c4-c192-cdfd-817ff9bcfab0@palves.net> <877dj9o4ch.fsf@tromey.com> <3facd73a-bfea-d46c-85a7-101ea893998f@palves.net> Message-ID: <8cfc78b7-ecdc-b435-5c1f-f027c8704f9e@palves.net> Date: Sat, 5 Jun 2021 00:48:35 +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: <3facd73a-bfea-d46c-85a7-101ea893998f@palves.net> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit 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: , Cc: Joel Brobecker , Hannes Domani via Gdb-patches Errors-To: gdb-patches-bounces+public-inbox=simark.ca@sourceware.org Sender: "Gdb-patches" On 2021-06-04 9:54 p.m., Pedro Alves wrote: > On 2021-06-04 7:46 p.m., Tom Tromey wrote: >> Pedro> The trouble is that now pressing anywhere on the screen with the >> Pedro> mouse just results in weird characters being printed on the >> Pedro> command line window (probably uninterpreted control sequences). >> >> I tried it here, and it worked fine for me. >> >> I couldn't select text, but I didn't see any control characters. >> >> Pedro> This was on Ubuntu 20.04. >> >> I'm on Fedora 32. > > I'm currently on Fedora 32 too, and while it works here too, I just found a way to reproduce a similar > problem that I'm seeing on the Ubuntu machine (which I currently don't have access to). (Though > on Ubuntu it was worse.) > > Try this: > > $ ./gdb ./gdb > ... > (gdb) start > c-x a > scroll up and down with mouse to check that it works ok. > c-x o # select command window > scroll up and down with mouse, and see escape codes being printed on the command window > > If I "c-x o" again to select the source window, then scrolling works correctly again. > > If I "c-x o" again to select the command window, then scrolling and clicking with the mouse > prints more bad characters. Like these: > > (top-gdb) 64;40;21M64;40;21M65;40;21M65;40;21M64;40;21M64;40;21M64;40;21M65;40;21M0;67;32M0;67;32m0;64;18M0;64;18m0;64;18M0;64;18m2;64;18M2;64;18m0;64;18M0;64;18M0;64;18M0 > ;64;18m1;64;18M1;64;18m64;64;18M64;64;18M1;64;19M1;64;19m1;64;19M1;64;19m2;64;19M2;64;19m0;64;19M0;64;19m0;51;13M0;51;13m0;1;27M0;1;27M0;1;27M0;1;27M0;1;27M0;1;27M0;1;27M0 > ;1;27M0;1;27M0;1;27m I have access to the Ubuntu machine again now. The symptom I see now the same as on Fedora -- I can scroll the source window, when when I focus on the command window, I start seeing all the badness. I don't think I focused on the command window earlier when I first reported it, maybe there's some other way to trigger it, but can't say for sure. So it is looking like this isn't OS specific afterall. Sorry for the spotty reporting. Hopefully the reproducer helps identifying the issue. Pedro Alves