From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Feng Shu Newsgroups: gmane.emacs.devel Subject: Re: "Final" version of tty child frames Date: Wed, 23 Oct 2024 14:54:56 +0800 Message-ID: <87o73bpav3.fsf@163.com> References: <87cyjrjz74.fsf@163.com> <87zfmvpkki.fsf@163.com> <87v7xjpjoi.fsf@163.com> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="16162"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: Emacs Devel To: Gerd =?iso-8859-1?Q?M=F6llmann?= Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Wed Oct 23 08:55:50 2024 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 1t3VHa-00045R-0w for ged-emacs-devel@m.gmane-mx.org; Wed, 23 Oct 2024 08:55:50 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1t3VGz-0008MW-6i; Wed, 23 Oct 2024 02:55:13 -0400 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 1t3VGw-0008Ki-Od for emacs-devel@gnu.org; Wed, 23 Oct 2024 02:55:10 -0400 Original-Received: from m16.mail.163.com ([220.197.31.2]) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1t3VGs-0002nU-M4 for emacs-devel@gnu.org; Wed, 23 Oct 2024 02:55:10 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=163.com; s=s110527; h=From:Subject:Date:Message-ID:MIME-Version: Content-Type; bh=v22WIWeITCK7qQ3aXAtFnyf+xtQyx0CJzAJ0Rp6oQ7A=; b=FCFdzhHq5Yix/qoeHXD89PplObXtrFYRNXMIiWLMK2IqHOxPyZa1wbAxR3d+0l GOH9kmrs/J+VkeoeC+C6CHqjj7T1BjoeVdg4PRkrGtKlIUdehS4Sr2NU7DdNzfIe Flvz5VtnUMHyg5rFTDcXK0Z3k4iO9uK8POAkgoYHOLnbU= Original-Received: from Tumashu (unknown [218.92.14.78]) by gzga-smtp-mtada-g1-1 (Coremail) with SMTP id _____wD3fwDAnRhn3lHECw--.24340S2; Wed, 23 Oct 2024 14:54:57 +0800 (CST) In-Reply-To: ("Gerd =?iso-8859-1?Q?M=F6llmann?= =?iso-8859-1?Q?=22's?= message of "Wed, 23 Oct 2024 06:40:11 +0200") X-CM-TRANSID: _____wD3fwDAnRhn3lHECw--.24340S2 X-Coremail-Antispam: 1Uf129KBjvJXoW7uw13tr4Utr4DCw1ktr13Jwb_yoW8Wr1rpr WYgF1qgr4ktw4xCrnFg3W8JFs0ywn3G3W293s8Ja18Zas5Wry2vrW0qFyIgr98Aws29rWY y3yYka9xCFn0y3DanT9S1TB71UUUUU7qnTZGkaVYY2UrUUUUjbIjqfuFe4nvWSU5nxnvy2 9KBjDUYxBIdaVFxhVjvjDU0xZFpf9x0zRdsqZUUUUU= X-Originating-IP: [218.92.14.78] X-CM-SenderInfo: 5wxpt2lkx6il2tof0z/1tbiLw+B1GcYjlyCMwABso Received-SPF: pass client-ip=220.197.31.2; envelope-from=tumashu@163.com; helo=m16.mail.163.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, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, 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:324763 Archived-At: Gerd M=F6llmann writes: > Gerd M=F6llmann writes: > >> Feng Shu writes: >> >>> Gerd M=F6llmann writes: >>> >>>> Feng Shu writes: >>>> >>>>> border do not work well when current buffer is CJK, maybe because CJK >>>>> Char width is not 1 >>>> >>>> Could you please send me a bit of CJK text so that I have something I >>>> can test this with? >> >> Thanks! > > Hm, okay, but not sure how to fix that. > This is a bad news, if we can not fix this problem, enable this feature all the world will be not a good idea. > The problem comes indeed from the root frame displaying characters that > are more then 1 column wide, say N. When we output such a character to > the terminal, the cursor moves by N columns. Emacs represents that in > the glyph matrix by producing N glyphs for the character, all bu tthe > first have a padding flag set. So we have > > ... (C, 0) (C, 1) ... > > in the glpyh matrix, where C is the character, and the number is the > padding flag. > > Now assume, for example, that the child frame is posititoned so that its > left border where we want to display a '|' is in the column for the (C, > 1). > > That can't work, because writing C to the terminal moves 2 columns and=20 > will skip over the column where we want the '|' to appear. > > I think the same should happen, in principle, without borders. Haven't > checked that though. Maybe we have to "clear the field" to the left and > right of child frames in the root frame matrix so that wide characters > don't interfere. --=20