mirror of https://github.com/nicolargo/glances.git
Add shortcut to show / hide TCP connections (k)
This commit is contained in:
parent
29e3c5bfd5
commit
0d1a1d852e
|
|
@ -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
|
||||
|
||||
|
|
|
|||
|
|
@ -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'},
|
||||
|
|
|
|||
|
|
@ -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):
|
||||
|
|
|
|||
Loading…
Reference in New Issue