From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: Why have you disable mouse on TTY builds? Date: Thu, 09 Jan 2025 08:25:18 +0200 Message-ID: <86h66833n5.fsf@gnu.org> References: <5c8854f9-53ec-43c7-b82a-e040ba246ccf@libero.it> <868qrpaf7r.fsf@gnu.org> <6437ff4e-1594-426a-8502-f7a6bec82808@libero.it> <86msg58qik.fsf@gnu.org> <8d232192-85d3-49f9-b2fb-5ef140bfee67@libero.it> <86sepx6w2l.fsf@gnu.org> <638f749d6f400ab2159aad4558cd9b17@finder.org> <48e63454-931c-4a7c-9a6d-903586fabb70@libero.it> <0d86c06f0409feb593245100b5282a19@finder.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="13069"; mail-complaints-to="usenet@ciao.gmane.io" Cc: angelo.g0@libero.it, emacs-devel@gnu.org To: Jared Finder Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Thu Jan 09 07:26:32 2025 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1tVlzz-0003Go-TO for ged-emacs-devel@m.gmane-mx.org; Thu, 09 Jan 2025 07:26:32 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tVlyv-0008Lh-Hf; Thu, 09 Jan 2025 01:25:25 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tVlyt-0008LX-Nn for emacs-devel@gnu.org; Thu, 09 Jan 2025 01:25:23 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tVlys-0001WJ-QB; Thu, 09 Jan 2025 01:25:22 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=jVOM5oWOCogvB2xHOEHwIsOgV4btkGG2WQPHj0vGwio=; b=YNtV7OfJ/+30 HOWoLoBNS19Sf+PU7nobSwg8W8nktnqSxkIEQlZRS1ldQx7UTIKQ6XODasPEQkl/Pq3AjGjs+8tHy RBVAdQ0cKA0gV+4UNyq2xgED71hzPWoWiZAISWYkV4uyMZqyDgodGZCSejKHJdZcRIzGshVoq47TZ mBy4Y4dIBopNuPrW+o8KkgOklMNUZrrU1FTn0VIWmgzo+YvFtMDga1U0AgtEa04NpsLBmmJPk9sS8 mrh6kWW/+/Uk6BZwXmF/LIEjyYNJMhRZSLrHGlHYtcWbSry8Fb6OhH4ebFQlw5TB5HfVrxiAzNqQw Uo+DtTBC7aUmgcg8gl8kbA==; In-Reply-To: (message from Jared Finder on Wed, 08 Jan 2025 20:54:44 -0800) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:327805 Archived-At: > Date: Wed, 08 Jan 2025 20:54:44 -0800 > From: Jared Finder > Cc: Eli Zaretskii , emacs-devel@gnu.org > > On 2025-01-08 20:52, Jared Finder wrote: > > On 2025-01-08 08:15, Angelo Graziosi wrote: > >> Just for completeness, > >> > >> I tested also the last master on MinTTY which has > >> > >> $ echo $TERM > >> xterm > >> > >> but the mouse is not supported if I do not add these lines > >> > >> (require 'mouse) > >> (require 'mwheel) > >> (unless window-system > >> (xterm-mouse-mode t) > >> (mouse-wheel-mode t)) > >> > >> to the init.el file. > >> > >> Is this to be expected? > > > > Yes, this is expected. MinTTY is not know to support OSC52 (copy / > > paste interaction with the OS), so the mouse is not automatically > > enabled. > > > > Note that I would expect you > > Sorry, I mis-hit a key that sent this email early. :) > > I meant to end with "note that I would expect you only need (unless > window-system (xterm-mouse-mode 1)). xterm-mouse-mode is autoloaded and > mouse-wheel-mode is enabled by default. If MinTTY is not known to support OSC52, but actually does support that (does it?), perhaps we could add it to the known names? Or does MinTTY not let us know its name programmatically?