Sorted help menu alphabetically.
This commit is contained in:
1 parent
821406e7c7
commit
5760971ca6
1 file changed
+1
-2
+1
-2
@@ -74,7 +74,7 @@ def print_processes(limit, show_quit_hint=True, use_color=True, show_line_number
|
|||||||
if use_color:
|
if use_color:
|
||||||
print(GREEN, end='')
|
print(GREEN, end='')
|
||||||
|
|
||||||
line_prefix = "Ln " if show_line_numbers else ""
|
line_prefix = "Ln " if show_line_numbers else ""
|
||||||
cpu_col = " CPU"
|
cpu_col = " CPU"
|
||||||
name_col = " Process"
|
name_col = " Process"
|
||||||
user_col = " User"
|
user_col = " User"
|
||||||
@@ -133,7 +133,6 @@ def main():
|
|||||||
print_processes(limit, show_quit_hint=show_quit, use_color=use_color, show_line_numbers=show_lines)
|
print_processes(limit, show_quit_hint=show_quit, use_color=use_color, show_line_numbers=show_lines)
|
||||||
key = wait_for_keypress(timeout=interval)
|
key = wait_for_keypress(timeout=interval)
|
||||||
if key and key.lower() == 'q':
|
if key and key.lower() == 'q':
|
||||||
print("Exiting...")
|
|
||||||
break
|
break
|
||||||
except KeyboardInterrupt:
|
except KeyboardInterrupt:
|
||||||
print("\nProgram interrupted. Exiting...")
|
print("\nProgram interrupted. Exiting...")
|
||||||
|
|||||||
Reference in new issue
Block a user