Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
adam.huang
htop
Commits
fc0e4466
Commit
fc0e4466
authored
Jul 29, 2015
by
Tobias Geerinckx-Rice
Browse files
Add shortcut key 'p' to toggle full program paths.
parent
293eec42
Changes
2
Hide whitespace changes
Inline
Side-by-side
Action.c
View file @
fc0e4466
...
...
@@ -211,6 +211,11 @@ static Htop_Reaction actionToggleUserlandThreads(State* st) {
return
HTOP_RECALCULATE
|
HTOP_SAVE_SETTINGS
;
}
static
Htop_Reaction
actionToggleProgramPath
(
State
*
st
)
{
st
->
settings
->
showProgramPath
=
!
st
->
settings
->
showProgramPath
;
return
HTOP_REFRESH
|
HTOP_SAVE_SETTINGS
;
}
static
Htop_Reaction
actionToggleTreeView
(
State
*
st
)
{
st
->
settings
->
treeView
=
!
st
->
settings
->
treeView
;
if
(
st
->
settings
->
treeView
)
st
->
settings
->
direction
=
1
;
...
...
@@ -501,6 +506,7 @@ void Action_setBindings(Htop_Action* keys) {
keys
[
'P'
]
=
actionSortByCPU
;
keys
[
'H'
]
=
actionToggleUserlandThreads
;
keys
[
'K'
]
=
actionToggleKernelThreads
;
keys
[
'p'
]
=
actionToggleProgramPath
;
keys
[
't'
]
=
actionToggleTreeView
;
keys
[
KEY_F
(
5
)]
=
actionToggleTreeView
;
keys
[
KEY_F
(
4
)]
=
actionIncFilter
;
...
...
htop.1.in
View file @
fc0e4466
...
...
@@ -151,6 +151,9 @@ Hide user threads: on systems that represent them differently than ordinary
processes (such as recent NPTL-based systems), this can hide threads from
userspace processes in the process list. (This is a toggle key.)
.TP
.B p
Show full paths to running programs, where applicable. (This is a toggle key.)
.TP
.B Ctrl-L
Refresh: redraw screen and recalculate values.
.TP
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment