From 8336d710548cbb1de690a8b66c18eb2a13d6d3fb Mon Sep 17 00:00:00 2001 From: JustinOros Date: Thu, 31 Jul 2025 14:41:37 -0700 Subject: [PATCH] Fixed a bug where the Press Q to Quit message was still being displayed after 3 seconds. --- color-top.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/color-top.py b/color-top.py index 514c9ca..238d48a 100644 --- a/color-top.py +++ b/color-top.py @@ -92,7 +92,7 @@ def main(): while True: refresh_count += 1 elapsed = time.time() - start_time - show_quit = refresh_count <= 3 or elapsed <= 3 + show_quit = refresh_count < 3 and elapsed < 3 print_processes(limit, show_quit_hint=show_quit) key = wait_for_keypress(timeout=interval) if key and key.lower() == 'q':