From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Jared Finder Newsgroups: gmane.emacs.devel Subject: Re: "Final" version of tty child frames Date: Sun, 05 Jan 2025 16:18:24 -0800 Message-ID: <5e97881b17d2874e776ef3ca3ac2dfaf@finder.org> References: <86wmi0g0x6.fsf@gnu.org> <11a86987cce9fe0a257c3fa58703dc33@finder.org> <86wmgl6jzv.fsf@gnu.org> <092cb755eee3a9b5e06d15c0b07e90b1@finder.org> <276414b03c24964aaeb9e43e8dba5e77@finder.org> <86jzb9ahc6.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="31933"; mail-complaints-to="usenet@ciao.gmane.io" Cc: rudalics@gmx.at, gerd.moellmann@gmail.com, emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Mon Jan 06 01:19:16 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 1tUapv-0008AD-Rf for ged-emacs-devel@m.gmane-mx.org; Mon, 06 Jan 2025 01:19:16 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tUapC-0000ZK-9i; Sun, 05 Jan 2025 19:18:30 -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 1tUap9-0000Yq-QM for emacs-devel@gnu.org; Sun, 05 Jan 2025 19:18:28 -0500 Original-Received: from greenhill.hpalace.com ([192.155.80.58]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tUap8-0004VV-9M; Sun, 05 Jan 2025 19:18:27 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=finder.org; s=2018; t=1736122704; bh=qTFK1i29QSbNGJmkcmX6C1mW+NdN7OP/LUXzAnBBcXM=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=OHbUvBdk9ghr8QCLmQpg/qSSjy9gu0Rx48Q8fIId3kgl3yWwYs8MvBZ85CxEXlYvM rzI/3ZcAFUrsW0NSAmrejEjmpTdA1nkNPQHzs/fDXsitJxTzVV9nC0xvkxHAxXvuVv zwU9nJjoU2MVGsFd9JLqMmyBIsg2w1Os2mX9BITf9kxs00ueSZz7Pttbfn65DZTGVA 4oOu04qka0c/tbOyeyWSv1QAML6Ar9+Y++HpNl9WMuS7E1+WJ9oV/+Schv6eCRmYmJ Vs6NwqKB+ky7o9PzjnXYeY9kG26sLsAgt1ChFY7ca4tbun90PCLYTIjVjTSs9YyU6/ jJotr3Y3RTE8w== Original-Received: from mail.finder.org (unknown [192.155.80.58]) by greenhill.hpalace.com (Postfix) with ESMTPSA id 39F32138A; Mon, 6 Jan 2025 00:18:24 +0000 (UTC) In-Reply-To: <86jzb9ahc6.fsf@gnu.org> X-Sender: jared@finder.org Received-SPF: pass client-ip=192.155.80.58; envelope-from=jared@finder.org; helo=greenhill.hpalace.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, RCVD_IN_VALIDITY_SAFE_BLOCKED=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action 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:327730 Archived-At: On 2025-01-04 22:46, Eli Zaretskii wrote: >> Date: Sat, 04 Jan 2025 14:09:55 -0800 >> From: Jared Finder >> Cc: Eli Zaretskii , gerd.moellmann@gmail.com, >> emacs-devel@gnu.org >> >> TTY child frame cursors behave even worse under GPM and a TERM=linux >> terminal. In this case, the cursor ends up on some lines always >> appearing at the end of lines (ignoring separate frames or windows) >> and >> sometimes in the right place. The point position is correct though >> and >> the cursor does appear correctly once I start pressing simple keys >> like >> 'A'. >> >> Unfortunately, the redisplay code in Emacs is super hard for me to >> understand and I can't figure out where or how the cursor gets >> positioned. If someone could give me some pointers here, I'd love to >> investigate further. > > If you mean the text cursor, then it is positioned by calling cmgoto, > which is called from tty_cursor_to and tty_raw_cursor_to. > > Frankly, I don't understand how the mouse could affect the cursor > positioning. Do you mean the cursor position is wrong when you click > the mouse? Emacs understanding of point ends up correct when I click the mouse, but the cursor is incorrect. This only applies to some lines. I get similar issues when using arrow keys for moving the point around as well. I do not see the same behavior in an xterm. This predates my change. It only happens when tty child frames are visible with TERM=linux, as far as I can tell. -- MJF