Make terminal size available for lanterna backend
phronmophobic opened this issue · 1 comments
phronmophobic commented
Use https://mabe02.github.io/lanterna/apidocs/3.1/com/googlecode/lanterna/screen/Screen.html#getTerminalSize-- to check the terminal size.
- Fire a
:terminal-resized
event before first draw and whenever it changes - update docs
phronmophobic commented
This design turned out to be not great in practice. It requires rendering the view to fire the event. If the event updates state, that would require an additional render to sync. Also, there's a forthcoming improvement that should handle most of the related use cases.