Fixed quit message bug.
This commit is contained in:
+1
-1
@@ -101,7 +101,7 @@ def print_processes(limit, show_quit_hint=True, use_color=True, show_line_number
|
|||||||
print(colorize(cpu, name, user, use_color))
|
print(colorize(cpu, name, user, use_color))
|
||||||
|
|
||||||
if show_quit_hint:
|
if show_quit_hint:
|
||||||
print("\nPress 'q' to quit.")
|
print(f"\n{GREEN}Press 'q' to quit.{RESET}")
|
||||||
|
|
||||||
def wait_for_keypress(timeout=1.0):
|
def wait_for_keypress(timeout=1.0):
|
||||||
fd = sys.stdin.fileno()
|
fd = sys.stdin.fileno()
|
||||||
|
|||||||
Reference in New Issue
Block a user