From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: 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 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-oa1-x2c.google.com with SMTP id 586e51a60fabf-1442977d77dso3984113fac.6 for ; Thu, 02 Feb 2023 11:59:18 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=RVtRKYbqk4nGIM+XmAQIXDSqDeVv8NrKb5CdqmBPF5U=; b=QjhtCHpiI99b26FA4kb6qzv+Hcrm4Xk12inzUAzvg7lbmRyJP5dN3YJcKbpuwGOqSi Fl/obiHe0PWDdksR93rALDgIjNeM5XsGoX2E00FSXGz7clzc7lNQ9rrgJu2fEH9ZITih saCQPcDWPDqzcvU7vOPGVe3Fs1eBZBU5p/NJsHUf0JFNuh2BR1X1bBa0EvEYVKmFyT4k lyOq5GVx8i/Ultkc4KMzNo9U/jA1kOJV2K14Scptq8VbvcwB769OLcGWcboCMEObReYU 8gxUXZ8h1PKgr8b0qWYRdCEOHXPYWs3TcQ0Afxgub3/5PFBI9ABvlJAlJu2plrMbUJi9 PGyg== 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: From: strager 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-Spam-Status: No, score=-1.8 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: 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.