From 3a1f055f69f24d493c8b83b501ee7af280b0437d Mon Sep 17 00:00:00 2001 From: aristocratos Date: Wed, 12 Aug 2020 16:57:34 +0200 Subject: [PATCH] Fixed Check for minimum terminal size at start when init screen is enabled --- bpytop.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bpytop.py b/bpytop.py index 66f5a7b..e5a2330 100755 --- a/bpytop.py +++ b/bpytop.py @@ -4276,13 +4276,14 @@ if __name__ == "__main__": else: cls.draw_bg(20) Draw.clear("initbg", "banner", "init", saved=True) + if cls.resized: return del cls.initbg_up, cls.initbg_down, cls.initbg_data, cls.initbg_colors #? Switch to alternate screen, clear screen, hide cursor, enable mouse reporting and disable input echo Draw.now(Term.alt_screen, Term.clear, Term.hide_cursor, Term.mouse_on, Term.title("BpyTOP")) Term.echo(False) - Term.refresh() + Term.refresh(force=True) if CONFIG.update_check: UpdateChecker.run() #? Draw banner and init status