emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Implementing child frames on terminal


From: Akib Azmain Turja
Subject: Re: Implementing child frames on terminal
Date: Tue, 12 Jul 2022 14:35:31 +0600

Po Lu <luangruo@yahoo.com> writes:

> Akib Azmain Turja <akib@disroot.org> writes:
>
>> Your idea is good, but until the child frame crosses the edges of it's
>> parent.  Then it'll cause a segmentation fault (the best case) or
>> continue without any symptom and corrupt your files or something else
>> silently (the worst case).
>
> Fixing that (assuming you clip the contents of the child frame to the
> parent) sounds easier than what you propose further on here:
>
>> I think we should somehow render the child frame glyph matrix before
>> processing it's parents.  Then we can copy the it's glyph matrix to it's
>> parent's one.  And, in case the child frame doesn't cross parent's
>> edges, we can use a floating window (as you suggested) as an
>> optimization (although I don't think we need this optimization, since
>> terminal don't usually have many characters).

Really?  It looks like it would require to modify whole redisplay logic
to make sure whether a glyph is inside edges and write to it only if it
is.  That sounds more tedious to me.  However, maybe it's easier to do
but I don't know how to.

-- 
Akib Azmain Turja

This message is signed by me with my GnuPG key.  It's fingerprint is:

    7001 8CE5 819F 17A3 BBA6  66AF E74F 0EFA 922A E7F5

Attachment: signature.asc
Description: PGP signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]