提交 0d1a1d85 编写于 作者: N nicolargo

Add shortcut to show / hide TCP connections (k)

上级 29e3c5bf
......@@ -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):
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册