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 20:47:52 +0600 Message-ID: <87y1ut9b3b.fsf@disroot.org> References: <87wnakl5md.fsf@disroot.org> <87o7vt3s58.fsf@disroot.org> <87ilm04xzl.fsf@disroot.org> <875yi0v8r6.fsf@disroot.org> <874jxjhz9l.fsf@disroot.org> <87tu5i9kbg.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="4888"; 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 16:51:40 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 1oWIsW-00013J-M7 for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 08 Sep 2022 16:51:40 +0200 Original-Received: from localhost ([::1]:44120 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oWIsV-0006Ms-NU for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 08 Sep 2022 10:51:39 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:41268) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oWIru-00061L-74 for bug-gnu-emacs@gnu.org; Thu, 08 Sep 2022 10:51:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:42905) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oWIrt-0001Mr-MF for bug-gnu-emacs@gnu.org; Thu, 08 Sep 2022 10:51:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oWIrt-0005KR-I3 for bug-gnu-emacs@gnu.org; Thu, 08 Sep 2022 10:51: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 14:51: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.166264865120467 (code B ref 57607); Thu, 08 Sep 2022 14:51:01 +0000 Original-Received: (at 57607) by debbugs.gnu.org; 8 Sep 2022 14:50:51 +0000 Original-Received: from localhost ([127.0.0.1]:59837 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oWIri-0005K2-R1 for submit@debbugs.gnu.org; Thu, 08 Sep 2022 10:50:51 -0400 Original-Received: from knopi.disroot.org ([178.21.23.139]:39718) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oWIrh-0005Jt-Cw for 57607@debbugs.gnu.org; Thu, 08 Sep 2022 10:50:50 -0400 Original-Received: from localhost (localhost [127.0.0.1]) by disroot.org (Postfix) with ESMTP id C1CF549FB2; Thu, 8 Sep 2022 16:50:47 +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 UTF8SMTP id NvLoMnlEgdlA; Thu, 8 Sep 2022 16:50:46 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=disroot.org; s=mail; t=1662648580; bh=7seP5L/pqt4b8TCrkblAXu8Tnuj1zzcf8Hs5U4jw7NA=; h=From:To:Cc:Subject:In-Reply-To:References:Date; b=XbGrDedeIxyEc6I1MlEzW87k1wzeffJv2Ln3EEKj/6KTu97/rT0Z7M7mhZK+2Qq5K Kkw3J/9HpSnvIgmuFOf1zhfpyNonHpt/0X+UAPvIec5Qd62s2SdsRR0IKtnIFffmpk aGFwMpAsMREc9LRxPWEgXw/7pFsSeMD0Et5mzEwcFF7pV7ohnbWasBL361NPpcdFZC QY98CxzbrfCthZE3o0LvdEBXvBBYECnYVCtx6WL4YyXlTS/84MgSA/tyn/9VxK/NBw 7UmI8DGUO4imu9lJtT+k8d9ZRynuYl1m99bYx0I0yWC9iotvpezHvDUCepgnrAjOCj FgVccXcJZPiog== In-Reply-To: ("Gerd =?UTF-8?Q?M=C3=B6llmann?="'s message of "Thu, 08 Sep 2022 14:35:15 +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:241917 Archived-At: --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Gerd M=C3=B6llmann writes: > Akib Azmain Turja writes: > >> 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. > > Great! I've re-opened this issue. > >> >>> >>> 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: >> >> printf "%$((COLUMNS - 4))s\e[31mr\e[32mg\e7\e[32mg\e8\e[@\e[31mr\e[m" ""= ; sleep 1 ; printf '\n' >> >> And it works on St, Kitty, Coterm, Term, etc. > > What I was thinking of is the Emacs side of things, i.e. can we always > do our magic locally in tty_write... etc., or is it sometimes necessary > to reorder writes at the caller. We would need to remember the glyph in the character cell before the last one, because modifying the last character cell needs to rewrite to that cell. =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----- iQIzBAEBCAAdFiEEyVTKmrtL6kNBe3FRVTX89U2IYWsFAmMaAJkACgkQVTX89U2I YWsplhAA33wCa8q2MZOFfoPucWrjuPj29O2B5C7iOl+LcvcZQ3aZQ6vq8PrOPqmX GrPDO8L/RJ6CndwV1RrCIdqBEIrciMMCcn9KEGKnpU6P8m14aWC57X1MqngKkW8Y ZrtkrfDet7oJA0AHGhVmnTlozcI4eQdNnLq5UjruygZBw/yfGUzVVagDYnfBcMen v3hyHQoInGnJEou7LYYbVW1TIkAOzE9JvHPyF+T5Bw5MmqIegju0Tx+GkXUMooki glXvmRzAW0/A8u8zh5ruKXhNg/f54lDghklB9z3/xN4l3LFHvBm8eXyQR+Gxi93W TEin5e1ER5Mrk39GlskXaFRjC5M1GBA4X2yUnXRBRFbS2YQFpuE73BWhYxsQLvOS A5GrBiyQZoXJ/7J4NOyaD1/+RdeslxCQs5WKp/M5CbJoL3DKUJYOgEjjYfceWYpZ 6PaXTjav+jFqba6/IZHixFZIX8fsWxmdXZ9eIAedKCzjoYI23fCeI5ZIDCScWyka I7UeDqARZUfnkfeSQMIU/qeNPORSKPvTudWm3l2MOYXXLUVN/T4EI1suPliojjQe +ZrbpVrvab0KiHRkcoxtARnjL3JXC0uv41RGie7zBVwvESFdHUy4bDQNqnlRyUo2 25oWB1ClqJmWO4YDCugJrFbJ3Dxcrfg1/4vmWjRxWCyeSchVdNw= =Fq4H -----END PGP SIGNATURE----- --=-=-=--