From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: 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 Cc: Joel Brobecker 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-Spam-Status: No, score=-4.0 required=5.0 tests=BAYES_00, FREEMAIL_FORGED_FROMDOMAIN, FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS, KAM_DMARC_STATUS, NICE_REPLY_A, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=no 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: Sat, 12 Jun 2021 18:08:16 -0000 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. :-)