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: "Final" version of tty child frames Date: Sun, 05 Jan 2025 08:46:17 +0200 Message-ID: <86jzb9ahc6.fsf@gnu.org> References: <86wmi0g0x6.fsf@gnu.org> <11a86987cce9fe0a257c3fa58703dc33@finder.org> <86wmgl6jzv.fsf@gnu.org> <092cb755eee3a9b5e06d15c0b07e90b1@finder.org> <276414b03c24964aaeb9e43e8dba5e77@finder.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="34007"; mail-complaints-to="usenet@ciao.gmane.io" Cc: rudalics@gmx.at, gerd.moellmann@gmail.com, emacs-devel@gnu.org To: Jared Finder Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sun Jan 05 07:47:11 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 1tUKPn-0008jB-8C for ged-emacs-devel@m.gmane-mx.org; Sun, 05 Jan 2025 07:47:11 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tUKP0-0004ob-7A; Sun, 05 Jan 2025 01:46:22 -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 1tUKOz-0004oT-Dh for emacs-devel@gnu.org; Sun, 05 Jan 2025 01:46:21 -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 1tUKOy-0006jL-Hs; Sun, 05 Jan 2025 01:46:20 -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=9c4KJARSdzZVWAYUAzFKFQekHlWH7T5zxiW1TrxhDRY=; b=TEppbi6FriWL 9pnvKoxf4Og8M+9tFgH038ZGBqDLhQLmuT+setUGq5R0JHfMFHUj+vcOqvmpm4Ml5NLEz0FethlpN ytVdOGOlwI3ReX2O3A0985/7foAc8F9tqICxTHLn9UUoWXEcrclmZsV1n2wzNw19p+eOregKZhNbm 5jTq2vEVp6vsFBf0DlggnOcdlnsv+6xDTmHPIrVcnx3n2o1Dm4KJcOG4/dz2XmPIEYbFsLFQC5PXt mwjhMMDjYg4Jo4aNXNDNFK+B3qlEaM7gMTmhCGhcs5o+dWmGrwq0er6VQlkpdxi3V2zmzu/xJYa+9 uRJDa22LAhsdO+KxsKswaQ==; In-Reply-To: (message from Jared Finder on Sat, 04 Jan 2025 14:09:55 -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:327706 Archived-At: > 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?