From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id 9AWRLCsW3GMyUygAWB0awg (envelope-from ) for ; Thu, 02 Feb 2023 14:59:39 -0500 Received: by simark.ca (Postfix, from userid 112) id A53A91E128; Thu, 2 Feb 2023 14:59:39 -0500 (EST) Authentication-Results: simark.ca; dkim=pass (1024-bit key; secure) header.d=sourceware.org header.i=@sourceware.org header.a=rsa-sha256 header.s=default header.b=O78j62mS; dkim-atps=neutral X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on simark.ca X-Spam-Level: X-Spam-Status: No, score=-4.3 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED, RDNS_DYNAMIC,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 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 34EB31E112 for ; Thu, 2 Feb 2023 14:59:39 -0500 (EST) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id B9A153858C53 for ; Thu, 2 Feb 2023 19:59:38 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org B9A153858C53 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1675367978; bh=RVtRKYbqk4nGIM+XmAQIXDSqDeVv8NrKb5CdqmBPF5U=; h=References:In-Reply-To:Date:Subject:To:Cc:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From:Reply-To:From; b=O78j62mSxBKRHnVfzVfPQJ6Y6jGRhnK8RRM2g1RC8O7LwXZGKSoKmwlytS4bS7A9i ShzRYSXl6Y8aRmaz7sj38LZqFJmwOIy8xeQ8nLR02pHVxG/15Kk5jIjXNA/Oo2Mg8I UWnfujqZbz9kvZkcjZOIx5zYBivE6NYjupsxYYTU= Received: from mail-oa1-x2c.google.com (mail-oa1-x2c.google.com [IPv6:2001:4860:4864:20::2c]) by sourceware.org (Postfix) with ESMTPS id 02CF73858C52 for ; Thu, 2 Feb 2023 19:59:19 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 02CF73858C52 Received: by mail-oa1-x2c.google.com with SMTP id 586e51a60fabf-1442977d77dso3984113fac.6 for ; Thu, 02 Feb 2023 11:59:18 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=RVtRKYbqk4nGIM+XmAQIXDSqDeVv8NrKb5CdqmBPF5U=; b=f8M5xXqT41vaIVSWIb8ta3RKzzk2TWjSTrTun/vPfZMZtl60wfz7fzRe5NsT4+TuS1 zPQhljdxFzq0cdzXEJL1VtbZDx4+5V9ssEg4cO+8RL01OaT7F0gtIPxOP48+4+LrO9Nm 7XY7dorwhUUTYN0+DNJ9bt+3ajd+mqVJ24yGQY6X0prClXMz0c9PCHeQlNVa5Xj+7SOi 6agq5Fy6VUaZ/qweuakSId5X7rf7t2gUb3tOWpOx3W4Ynr+4TTs3xxAb5CuTFJavNpv4 7WlrzSRG5LcDGLXldQqdTvwwsNQkR96o9ZXP4zxblBhCWpt9hhgMpwWkK7qNiNxtQ2Cs 74gA== X-Gm-Message-State: AO0yUKX3CT0NdjWJ9LzyL+e28yMsT5l487gYfIi/5U2m9nS8q/UtLdJC /IWRcMw5pNr+Ozc7dstqyguV/zfwJa0gVmtjtXjWg5v/LlI= X-Google-Smtp-Source: AK7set8s5hQ0E5VUWB6mD40MOx6pffCR1d9spl2ChPb83DpSCf+hV1072LA9eP3faFk53iJouGqu9nDzS68WbfQFbBs= X-Received: by 2002:a05:6870:3048:b0:15f:d0bb:fa63 with SMTP id u8-20020a056870304800b0015fd0bbfa63mr466691oau.3.1675367958383; Thu, 02 Feb 2023 11:59:18 -0800 (PST) MIME-Version: 1.0 References: <838rhnawf9.fsf@gnu.org> <87ilgltt15.fsf@redhat.com> In-Reply-To: Date: Thu, 2 Feb 2023 11:59:07 -0800 Message-ID: Subject: Re: [PATCH] gdb/tui: add 'set tui mouse-events off' to restore mouse selection To: Pedro Alves Cc: Andrew Burgess , Eli Zaretskii , gdb-patches@sourceware.org Content-Type: text/plain; charset="UTF-8" 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: , From: strager via Gdb-patches Reply-To: strager Errors-To: gdb-patches-bounces+public-inbox=simark.ca@sourceware.org Sender: "Gdb-patches" On Thu, Feb 2, 2023 at 11:50 AM Pedro Alves wrote: > I noticed the new command doesn't have a "set" callback, so I guess this means > that you have to disable and re-enable the TUI for the setting to take effect? > Or does it take effect immediately somehow? I tested it and it does take effect immediately. (I was surprised too.) I think it's because you enter readline after you type the 'set' command, and the mousemask code runs every readline.