From 9560468ecc05aa7317b517882e081564a9a0fd90 Mon Sep 17 00:00:00 2001 From: aristocratos Date: Sun, 2 May 2021 10:37:04 +0200 Subject: [PATCH] Fixed: q key not working when terminal size warning is showed --- bpytop.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/bpytop.py b/bpytop.py index 5bcca50..7fc39c7 100755 --- a/bpytop.py +++ b/bpytop.py @@ -697,6 +697,8 @@ class Term: f'{Colors.default}Height: {Colors.red if cls._h < cls.min_height else Colors.green}{cls._h}{Term.bg}{Term.fg}', f'{Mv.d(1)}{Mv.l(25)}{Colors.default}{Colors.black_bg}Current config need: {cls.min_width} x {cls.min_height}{Fx.ub}{Term.bg}{Term.fg}') cls.winch.wait(0.3) + while Key.has_key(): + if Key.last() == "q": clean_quit() cls.winch.clear() cls._w, cls._h = os.get_terminal_size() else: