Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
蜕变的菜鸟
glances
提交
8e8e6544
G
glances
项目概览
蜕变的菜鸟
/
glances
与 Fork 源项目一致
从无法访问的项目Fork
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
G
glances
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
提交
8e8e6544
编写于
8月 03, 2015
作者:
N
Nicolargo
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Add --full-quicklook tag (key '4')
上级
8217b9e2
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
48 addition
and
6 deletion
+48
-6
docs/glances-doc.rst
docs/glances-doc.rst
+8
-1
glances/core/glances_main.py
glances/core/glances_main.py
+4
-2
glances/outputs/glances_curses.py
glances/outputs/glances_curses.py
+15
-0
man/glances.1
man/glances.1
+21
-3
未找到文件。
docs/glances-doc.rst
浏览文件 @
8e8e6544
...
...
@@ -147,6 +147,12 @@ Command-Line Options
-d, --debug enable debug mode
-C CONF_FILE, --config CONF_FILE
path to the configuration file
--disable-quicklook disable quick look module
--full-quicklook enable all but quick look and load
--disable-cpu disable CPU module
--disable-mem disable MEM module
--disable-swap disable SWAP module
--disable-load disable LOAD module
--disable-network disable network module
--disable-ip disable IP module
--disable-diskio disable disk I/O module
...
...
@@ -160,7 +166,6 @@ Command-Line Options
sensors modules (py3sensors needed)
--disable-process disable process module
--disable-log disable log module
--disable-quicklook disable quick look module
--disable-bold disable bold mode in the terminal
--enable-process-extended
enable extended stats on top process
...
...
@@ -280,6 +285,8 @@ The following commands (key pressed) are supported while in Glances:
Enable/disable left sidebar
``3``
Enable/disable the quick look module
``4``
Enable/disable all but quick look and load module
``/``
Switch between short name / command line (processes name)
...
...
glances/core/glances_main.py
浏览文件 @
8e8e6544
...
...
@@ -100,6 +100,10 @@ Start the client browser (browser mode):\n\
parser
.
add_argument
(
'-C'
,
'--config'
,
dest
=
'conf_file'
,
help
=
'path to the configuration file'
)
# Enable or disable option on startup
parser
.
add_argument
(
'-3'
,
'--disable-quicklook'
,
action
=
'store_true'
,
default
=
False
,
dest
=
'disable_quicklook'
,
help
=
'disable quick look module'
)
parser
.
add_argument
(
'-4'
,
'--full-quicklook'
,
action
=
'store_true'
,
default
=
False
,
dest
=
'full_quicklook'
,
help
=
'disable all but quick look and load'
)
parser
.
add_argument
(
'--disable-cpu'
,
action
=
'store_true'
,
default
=
False
,
dest
=
'disable_cpu'
,
help
=
'disable CPU module'
)
parser
.
add_argument
(
'--disable-mem'
,
action
=
'store_true'
,
default
=
False
,
...
...
@@ -131,8 +135,6 @@ Start the client browser (browser mode):\n\
dest
=
'disable_process'
,
help
=
'disable process module'
)
parser
.
add_argument
(
'--disable-log'
,
action
=
'store_true'
,
default
=
False
,
dest
=
'disable_log'
,
help
=
'disable log module'
)
parser
.
add_argument
(
'-3'
,
'--disable-quicklook'
,
action
=
'store_true'
,
default
=
False
,
dest
=
'disable_quicklook'
,
help
=
'disable quick look module'
)
parser
.
add_argument
(
'--disable-bold'
,
action
=
'store_false'
,
default
=
True
,
dest
=
'disable_bold'
,
help
=
'disable bold mode in the terminal'
)
parser
.
add_argument
(
'--enable-process-extended'
,
action
=
'store_true'
,
default
=
False
,
...
...
glances/outputs/glances_curses.py
浏览文件 @
8e8e6544
...
...
@@ -264,6 +264,21 @@ class _GlancesCurses(object):
elif
self
.
pressedkey
==
ord
(
'3'
):
# '3' > Enable/disable quicklook
self
.
args
.
disable_quicklook
=
not
self
.
args
.
disable_quicklook
elif
self
.
pressedkey
==
ord
(
'4'
):
# '4' > Enable/disable all but quick look and load
self
.
args
.
full_quicklook
=
not
self
.
args
.
full_quicklook
if
self
.
args
.
full_quicklook
:
self
.
args
.
disable_quicklook
=
False
self
.
args
.
disable_cpu
=
True
self
.
args
.
disable_mem
=
True
self
.
args
.
disable_swap
=
True
self
.
args
.
disable_load
=
False
else
:
self
.
args
.
disable_quicklook
=
False
self
.
args
.
disable_cpu
=
False
self
.
args
.
disable_mem
=
False
self
.
args
.
disable_swap
=
False
self
.
args
.
disable_load
=
False
elif
self
.
pressedkey
==
ord
(
'/'
):
# '/' > Switch between short/long name for processes
self
.
args
.
process_short_name
=
not
self
.
args
.
process_short_name
...
...
man/glances.1
浏览文件 @
8e8e6544
...
...
@@ -31,6 +31,24 @@ enable debug mode (log file is /tmp/glances.log)
.B \-C CONF_FILE, \-\-config CONF_FILE
path to the configuration file
.TP
.B \-\-disable-quicklook
disable quick look module
.TP
.B \-\-full-quicklook
disable all but quick look and load modules
.TP
.B \-\-disable-cpu
disable CPU module
.TP
.B \-\-disable-mem
disable MEM module
.TP
.B \-\-disable-swap
disable SWAP module
.TP
.B \-\-disable-load
disable LOAD module
.TP
.B \-\-disable-network
disable network module
.TP
...
...
@@ -64,9 +82,6 @@ disable process module
.B \-\-disable-log
disable log module
.TP
.B \-\-disable-quicklook
disable quick look module
.TP
.B \-\-disable-bold
disable bold mode in the terminal
.TP
...
...
@@ -261,6 +276,9 @@ Enable/disable left sidebar
.B 3
Enable/disable the quick look module
.TP
.B 4
Enable/disable all but quick look and load module
.TP
.B /
Switch between short name/command line (processes name)
.SH EXAMPLES
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录