dankamongmen / growlight

notcurses block device manager / system installation tool
https://nick-black.com/dankwiki/index.php/Growlight
GNU General Public License v3.0
85 stars 12 forks source link

Extract panelreel core into its own library #43

Closed dankamongmen closed 4 years ago

dankamongmen commented 4 years ago

The ncurses code is horrible intertwined with all kinds of core crap. Get it extracted, and move it into its own library. Then, unify it with the omphalos implementation, and get that refactored as well.

dankamongmen commented 4 years ago

I've created https://github.com/dankamongmen/outcurses, which will be a fine place for this stuff to go.

dankamongmen commented 4 years ago

This is moving along. I've been recreating the functionality in outcurses, but it goes slowly, with many interruptions. Thankfully, I fixed #23 , which takes a lot of heat off of the curses UI code.

I'd love to have this done in 1.2, but don't yet want to commit.

dankamongmen commented 4 years ago

Outcurses has most of the panelreel abstraction now, and it's working better than this ever did. We ought be able to start converting late next week, I'd think.

dankamongmen commented 4 years ago

And now is is notcurses! https://github.com/dankamongmen/notcurses

dankamongmen commented 4 years ago

This is well along its way. Using notcurses 0.9.0, we have the following:

2019-12-18-172622_722x1417_scrot

Obviously there are some glitches still, but this is just about there, with several thousand fewer lines of code.

dankamongmen commented 4 years ago

I've merged growlight in its notcurses variant. There are still some rough edges, but they now deserve their own subbugs. w00t!