From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id 8gw7Gw+TumAiUAAAWB0awg (envelope-from ) for ; Fri, 04 Jun 2021 16:54:39 -0400 Received: by simark.ca (Postfix, from userid 112) id 61F121F163; Fri, 4 Jun 2021 16:54:39 -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 A4B151E54D for ; Fri, 4 Jun 2021 16:54:38 -0400 (EDT) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 0CF8F39A142B for ; Fri, 4 Jun 2021 20:54:38 +0000 (GMT) Received: from mail-wm1-f54.google.com (mail-wm1-f54.google.com [209.85.128.54]) by sourceware.org (Postfix) with ESMTPS id EDF353858038 for ; Fri, 4 Jun 2021 20:54:25 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org EDF353858038 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-f54.google.com with SMTP id s70-20020a1ca9490000b02901a589651424so1612897wme.0 for ; Fri, 04 Jun 2021 13:54:25 -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=ZfGbJEm4EtXFtbkkqWKdp8zohZV1TziGZ7PFoTQdaSY=; b=rE4at0SS0RklOscnAXmmamXDR2zkpEyTzQ0DYWLQtEItdFXTGEhMuJ8ZqVKYQ+fM/u O96DTLEP74xsg9GlpKNN2VLvDqpLHYb+MHGVQAeP+AY3ZJD5Ilc0G1eZOlBwUHQi1Dhp NZMvNde5hmp3hScBhLFLa80KSJPDKk1yWI86NlFEO7HEhR5vBVSIIoCvndbN44IpuoNm anNMEa0ckBbY+uZ0JieYlV9PGzmLdABi+ytMrQRxIfnmL6Jk3U8TmH7yEDT3X+Plm+06 2H1UE/hwzWA0aHIwJoqfSrflSQbtKOv19Ym0IYN6Wn5NlJgJ1/KtAR0HlQEaIquBHzXK ZZvA== X-Gm-Message-State: AOAM530Qkvc4EJK7iiNl9FKaBFXRXBqVcEdx4gQmTG0ZDz659kQ16v+q WeXIx5Mqei3RSzyJI3CniAE= X-Google-Smtp-Source: ABdhPJzCTG8rkUnOOzau3c8vYvU6caj7uokbf8Rs7rvIRJMT5+bmst/ye9rXdAQ3yGAAwAmKWSMEtQ== X-Received: by 2002:a05:600c:4f0c:: with SMTP id l12mr5237139wmq.71.1622840065027; Fri, 04 Jun 2021 13:54:25 -0700 (PDT) Received: from ?IPv6:2001:8a0:f907:cc00:d853:1a0d:f443:8b26? ([2001:8a0:f907:cc00:d853:1a0d:f443:8b26]) by smtp.gmail.com with ESMTPSA id c7sm8691360wrc.42.2021.06.04.13.54.23 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 04 Jun 2021 13:54:23 -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> Message-ID: <3facd73a-bfea-d46c-85a7-101ea893998f@palves.net> Date: Fri, 4 Jun 2021 21:54:22 +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: <877dj9o4ch.fsf@tromey.com> 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 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 Pedro Alves > > I wonder if there's something weird about the Ubuntu build of ncurses. > Or the Fedora one. > > Tom >