From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Akib Azmain Turja via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#57607: Feature request: Use the character cell on bottom-right corner of a terminal Date: Thu, 08 Sep 2022 17:28:35 +0600 Message-ID: <87tu5i9kbg.fsf@disroot.org> References: <87wnakl5md.fsf@disroot.org> <87o7vt3s58.fsf@disroot.org> <87ilm04xzl.fsf@disroot.org> <875yi0v8r6.fsf@disroot.org> <874jxjhz9l.fsf@disroot.org> Reply-To: Akib Azmain Turja Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="6094"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 57607@debbugs.gnu.org To: Gerd =?UTF-8?Q?M=C3=B6llmann?= Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Sep 08 14:14:04 2022 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1oWGPz-0001M1-9i for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 08 Sep 2022 14:14:03 +0200 Original-Received: from localhost ([::1]:45420 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oWGPy-0000MO-D2 for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 08 Sep 2022 08:14:02 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:45520) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oWGN4-0004ct-Cj for bug-gnu-emacs@gnu.org; Thu, 08 Sep 2022 08:11:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:40497) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oWGN4-0004Wr-1M for bug-gnu-emacs@gnu.org; Thu, 08 Sep 2022 08:11:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oWGN3-00062a-Ns for bug-gnu-emacs@gnu.org; Thu, 08 Sep 2022 08:11:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Akib Azmain Turja Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 08 Sep 2022 12:11:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 57607 X-GNU-PR-Package: emacs Original-Received: via spool by 57607-submit@debbugs.gnu.org id=B57607.166263905723209 (code B ref 57607); Thu, 08 Sep 2022 12:11:01 +0000 Original-Received: (at 57607) by debbugs.gnu.org; 8 Sep 2022 12:10:57 +0000 Original-Received: from localhost ([127.0.0.1]:57429 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oWGMw-00062E-2r for submit@debbugs.gnu.org; Thu, 08 Sep 2022 08:10:57 -0400 Original-Received: from knopi.disroot.org ([178.21.23.139]:36212) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oWGMi-00061o-Vb for 57607@debbugs.gnu.org; Thu, 08 Sep 2022 08:10:52 -0400 Original-Received: from localhost (localhost [127.0.0.1]) by disroot.org (Postfix) with ESMTP id BDD3649FF5; Thu, 8 Sep 2022 14:10:39 +0200 (CEST) X-Virus-Scanned: SPAM Filter at disroot.org Original-Received: from knopi.disroot.org ([127.0.0.1]) by localhost (disroot.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id wSxW5hvTDuHh; Thu, 8 Sep 2022 14:10:38 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=disroot.org; s=mail; t=1662638929; bh=Me5+W3yfls8eKxpYNb8h85zbp+nSh0wS/RzVNfXsrBw=; h=From:To:Cc:Subject:In-Reply-To:References:Date; b=khDuNoo97WXId1wD+YeD+t4xWF8twrtObT7uqcJfV37aZr1kjyJSPZF0hd1HqQrmK pJCvuaFsjrU6hK+D0IZQTZnCdN8EyxJxe3Uct+0TptpRL61i3Oc+WrAiYOpaGbmktj Iis6M9AyjzjIffOUMC2eK1/SCDtgRYsWqjZpL20I/09vGcWZ6v3/F3Cuq5fFKP93QF n85q8DBypWz5xhI123hzDhUOp0lwLV9qHIRgHf/I7g5ZFfmcHDI66raDg9DehhWEn/ IsgdLOSSB56Z3bcJDqQUJZzgE78NLQ4I7oTD4EFpYJ2TGc4638UldKqGq9Y0RRf7Ry OK7IlwhkakuMA== In-Reply-To: ("Gerd =?UTF-8?Q?M=C3=B6llmann?="'s message of "Thu, 08 Sep 2022 07:49:44 +0200") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:241862 Archived-At: --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Gerd M=C3=B6llmann writes: > Akib Azmain Turja writes: > >> Gerd M=C3=B6llmann writes: >> >> I mean, what files to change in order to do this? I think it's >> tty_write_glyphs and tty_write_glyphs_with_face in term.c. > > Are you interested in implementing something? You could re-open this > bug then, no problem. Or are you maybe just evaluating if you'd like to > do it? Please give a hint. Yes, I'm interested, because I think it would help me understand how Emacs renders text in terminal, which would help me to implement child frame in terminal. But I don't have the time to do it right now. I hope I can start doing this by late October. > > The places you mention sound right. It's probably all in term.c. But > I'd like to add, that in principle all places writing to the terminal > have to be checked at least. > > And corner cases have to be taken into consideration :-). Pulling > something out of thin air: What happens if we write RGRG to the > bottom-right corner, where R is one red char, and G is 1 green char, > say. I think you meant the following in Bash: =2D-8<---------------cut here---------------start------------->8--- printf "%$((COLUMNS - 4))s\e[31mr\e[32mg\e7\e[32mg\e8\e[@\e[31mr\e[m" "" ; = sleep 1 ; printf '\n' =2D-8<---------------cut here---------------end--------------->8--- And it works on St, Kitty, Coterm, Term, etc. > > And maybe we have to check for characters that are more than 1 column > wide? I don't remember something like that from when I last worked in > this area, but I'd check what the situation is nowadays. > > That's all I can say without studying the code more in detail, which I'm > trying to avoid :-). > =2D-=20 Akib Azmain Turja Find me on Mastodon at @akib@hostux.social. This message is signed by me with my GnuPG key. Its fingerprint is: 7001 8CE5 819F 17A3 BBA6 66AF E74F 0EFA 922A E7F5 --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEEyVTKmrtL6kNBe3FRVTX89U2IYWsFAmMZ0eQACgkQVTX89U2I YWv+LBAAhcMUhS3MCesysJu8tOeKsIb1vUzgdRAi8dUBvCLt9pTvSzt8hM8qiQcV p4lQb/Rpv87VUUqoQtKSVb3wofzQM9SVvVoPgFLrY0f9t//b3s9O7ZxaKNwz+5NA EF/ETaAATskOiJ37U51KpvySsxCZG7seJwYxdrusscuODRsdLOSQT4u4nNeNr+2y pXU3oahlD31bGAekdiCewk2qCIPznon0iRNjmTdYuKJu+s9RFzt9taxbeE5s7PZ7 0PPNHu0yAMyb6hBLmrTroS+rJUjr3MWYS9oVbDAorAti1FhJ1aQvoIzxjUAfQ6sj LJ6t9zKUTgyD29yYHHywUjvgHCF2cNzoZ0VO64Zm6VPjhlcZU84bTO8ewgpUvW1l hcB2y7K2D4U7zkvvbKDBZMH3WIZvLlDwmsdkqkjRdkuVcVAY+AKUPWjLDfJrQafV cOZzwgZjaVzYEXWsZWt6jZY4dM8J49vk4E7wwvkPgRREafRledunSaCURuM0SCk0 gkp736ebWyXtcn3ZxkWiwrZ0Oio8dagKvxnx2+rUG6Bf0k/LWwBZelVjE3EKv+9u qwM60flwRn/4j+JaPsaIphF4DCARyka8gRI1tgzjNBE/n/vInhzSXBGqQJwMrucq L+8e+VSjkE3+XYR0pSJuW4wbfBSUJ8e8Y7ZhRNW2wmy53/cuTFQ= =qrHo -----END PGP SIGNATURE----- --=-=-=--