commit 5983928ff7cb3a39fe50323f2d61a8df04aead8d
parent 548de6ad7f8b093cd794136b58a676da131db409
Author: luke8086 <55237178+luke8086@users.noreply.github.com>
Date: Thu, 28 Jul 2022 20:28:09 +0000
Restore check for 80x25 terminal which got accidentally removed
Diffstat:
1 file changed, 3 insertions(+), 0 deletions(-)
diff --git a/retronews.py b/retronews.py
@@ -749,6 +749,9 @@ def app_update_layout(app: AppState) -> None:
(lt.lines, lt.cols) = app.screen.getmaxyx()
+ if lt.lines < 25 or lt.cols < 80:
+ raise Exception("At least 80x25 terminal is required")
+
max_index_height = lt.lines - 3
lt.index_height = (max_index_height // 3) if app.pager_visible else max_index_height