Hi!
I'm designing a terminal application that is supposed to display a status line on the very last line of the screen. The content above this status line is of varying size. It might just be one line, or maybe it's a very long list spanning hundreds of lines.
However, I'm having problems expressing this using brick's layouting combinators. I tried prepending "padTop Max" before the status text. This, however, extends the (blue) background of the status line up to the last "regular" application line:
Also, "big" widgets (for example, a vertical viewport containing hundreds of log line widgets) above the status line don't fill up the whole screen, but half of it:
I suppose this is because both the status line and the widgets above are greedily taking up all the space, resulting in both getting half of it?
How do I solve this problem elegantly? Is there a widget that grows only if no other widget takes up the space?