From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id +jKlNRz4xGAcXgAAWB0awg (envelope-from ) for ; Sat, 12 Jun 2021 14:08:28 -0400 Received: by simark.ca (Postfix, from userid 112) id CCFCE1F163; Sat, 12 Jun 2021 14:08:28 -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 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 D24BC1E939 for ; Sat, 12 Jun 2021 14:08:27 -0400 (EDT) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 82162383F40D for ; Sat, 12 Jun 2021 18:08:27 +0000 (GMT) Received: from mail-wm1-f46.google.com (mail-wm1-f46.google.com [209.85.128.46]) by sourceware.org (Postfix) with ESMTPS id 793433855031 for ; Sat, 12 Jun 2021 18:08:15 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 793433855031 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-f46.google.com with SMTP id v206-20020a1cded70000b02901a586d3fa23so10385917wmg.4 for ; Sat, 12 Jun 2021 11:08:15 -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=fVomTqTlaaZPnmW8Q+wUHf5sZ0jkV+S2BV+L0ah7DAQ=; b=De0DiPuQe1T7QUkrsyWU8OLPGs1EKFnHpT24hmUE/PYKd42+EaLWOLNVx2giTUPFi0 TE06L6HVRCgSq2ZTaoJ74Dwd6aJFVe8fFftHSkSLfmNXR7eQAYSnkL25BhY8wBPDEE/r oUvprXvA/6iRzsPrFyl9F7bOGxsu13EKGsE9zhLsiK3HF02caGv/HscxZoVh+Iplcm1k Cd0pNcjrHUeyc4q+AiTuC0ZP+t/eTBKvLDIj8TqwoVwiNffZv/AfRnD1/UGCJ8Qx0tym FW1+PwWZE0DjzxfwLk6i2YpdAEsNclNOXVMOZzjBQxxTjnSRDZU1l7dlYkz+3lOM5eiQ /dVg== X-Gm-Message-State: AOAM531FRLR0xVccRb4KLzWX8PxLy1iuATS5h4sU7KX2instRi/8sGt+ GEYY/3cqwx8ROCUezvQfaeU= X-Google-Smtp-Source: ABdhPJxh8RnCy9QzwJSZZd+y+99VVquaMxEVhcMQ1vEB7RGgdpLStnuPC/b1ni+aR4b/y3VFAIB0+A== X-Received: by 2002:a7b:c189:: with SMTP id y9mr9137561wmi.106.1623521294500; Sat, 12 Jun 2021 11:08:14 -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 m3sm11608158wrr.32.2021.06.12.11.08.13 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sat, 12 Jun 2021 11:08:13 -0700 (PDT) Subject: Re: POC: Make the TUI command window support the mouse (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> <0936428e-80c4-c192-cdfd-817ff9bcfab0@palves.net> <877dj9o4ch.fsf@tromey.com> <3facd73a-bfea-d46c-85a7-101ea893998f@palves.net> <8cfc78b7-ecdc-b435-5c1f-f027c8704f9e@palves.net> <1231900744.5510610.1622904017896@mail.yahoo.com> <87wnr1h80t.fsf@tromey.com> <287323544.8784317.1623409369460@mail.yahoo.com> <1761936332.9225994.1623501145444@mail.yahoo.com> Message-ID: <6afbe909-91d6-af32-d496-ca112dcfb43a@palves.net> Date: Sat, 12 Jun 2021 19:08:12 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.11.0 MIME-Version: 1.0 In-Reply-To: <1761936332.9225994.1623501145444@mail.yahoo.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 Errors-To: gdb-patches-bounces+public-inbox=simark.ca@sourceware.org Sender: "Gdb-patches" On 2021-06-12 1:32 p.m., Hannes Domani wrote: > If this works on Linux, then that's great, but Windows doesn't send mouse > escape sequences. I was under the impression that Windows just worked without further changes, so we'd just not compile in the new code. > > On the other hand, if keypad was enabled, couldn't we just forward readline > the escape sequences for the arrow keys instead? Yeah, to be honest I think that is likely a better approach and worth it of a try -- my only concern is whether the escape sequences are standard enough across terminals? Maybe it's all covered by ANSI and it's all we need to care about? I thought of the other approach because that let's us not care about specific sequences, other than the mouse sequence, which seemed pretty much standard from looking around. Also, it was run to write. :-)