dankamongmen / panelreels

high-level objects built atop ncurses
https://nick-black.com/dankwiki/index.php/Outcurses
Apache License 2.0
8 stars 1 forks source link

See if we can't resize and keep the lower part of a window #75

Open dankamongmen opened 4 years ago

dankamongmen commented 4 years ago

Having to account for direction of travel in the callback is a big bummer. It's responsible for a significant portion of our callback complexity. This could go away if we didn't have to draw from the top on both sides: if, when drawing up, we could start on the last line and walk up, we neither need remember the future nor perform weird logics to handle top-clipping.

What if we, like, made a subwin (they share memory, right?) on the bottom part of the tablet window, and then freed up the larger one? Does that work?

dankamongmen commented 4 years ago

Perhaps a pad is the way to go here. Keep it finite, bound by the panelreel overall, but let them write from the bottom, and then show only the meaningful part...