I am still in the middle of making these changes, but I wanted to send
what I had to the list right now for any comments.  This weekend, I'll
add 2 or 3 more patches for the last few changes and add them to this
thread.

It's a lot of patches, but that's because I've tried to keep each patch
small.  The most interesing patch is the first one: introducing the
structures and adding the reflow routines.  So if you don't want to look
at all the changes, please take a look at that one.

The purpose of the patches is to centralize the screen drawing and
calculation logic.  Right now, that logic is distributed to every place
that wants to update the screen.  Meaning they all have to calculate
based whether $status_on_top, or $help.  And they all assume fixed
positions for everything: so introducing a sidebar for example is
dreadfully invasive.

I am aware of curses windows and subwindows, but those have some
trickiness involving refreshing and cursors, and would have been even
more intrusive to use.  This is fairly lightweight, and still simplifies
the code.

-- 
Kevin J. McCarthy
GPG Fingerprint: 8975 A9B3 3AA3 7910 385C  5308 ADEF 7684 8031 6BDA
http://www.8t8.us/configs/gpg-key-transition-statement.txt

Attachment: signature.asc
Description: PGP signature

Reply via email to