Skip to content

Commit

Permalink
Add shortcut to show / hide TCP connections (k)
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolargo committed Oct 8, 2019
1 parent 29e3c5b commit 0d1a1d8
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 0 deletions.
3 changes: 3 additions & 0 deletions docs/cmds.rst
Expand Up @@ -287,6 +287,9 @@ The following commands (key pressed) are supported while in Glances:
``I``
Show/hide IP module

``k``
Show/hide TCP connections

``l``
Show/hide log messages

Expand Down
1 change: 1 addition & 0 deletions glances/outputs/glances_curses.py
Expand Up @@ -66,6 +66,7 @@ class _GlancesCurses(object):
'G': {'switch': 'disable_gpu'},
'h': {'switch': 'help_tag'},
'I': {'switch': 'disable_ip'},
'k': {'switch': 'disable_connections'},
'l': {'switch': 'disable_alert'},
'M': {'switch': 'reset_minmax_tag'},
'n': {'switch': 'disable_network'},
Expand Down
4 changes: 4 additions & 0 deletions glances/plugins/glances_quicklook.py
Expand Up @@ -67,6 +67,10 @@ def __init__(self, args=None, config=None):
# We want to display the stat in the curse interface
self.display_curse = True

# !!! @TODO: Debug disable / enable from conf file
# logger.info(args)
# logger.info(config.as_dict()['quicklook'])

@GlancesPlugin._check_decorator
@GlancesPlugin._log_result_decorator
def update(self):
Expand Down

0 comments on commit 0d1a1d8

Please sign in to comment.