Add shortcut to show / hide TCP connections (k)

This commit is contained in:
nicolargo 2019-10-08 22:14:39 +02:00
parent 29e3c5bfd5
commit 0d1a1d852e
3 changed files with 8 additions and 0 deletions

View File

@ -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

View File

@ -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'},

View File

@ -67,6 +67,10 @@ class Plugin(GlancesPlugin):
# 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):