diff options
author | ryenus <ryenus@gmail.com> | 2020-10-08 00:36:20 +0800 |
---|---|---|
committer | ryenus <ryenus@gmail.com> | 2020-10-09 09:03:32 +0800 |
commit | 32a2caa692ee2e2b26d77d00b60166fba87667fb (patch) | |
tree | 95a8db3eba7a84328c6ac1791c5bf9e31a5c198a | |
parent | 4a78f4bb928a4fd6b7b0c003ebdea279cf0d319f (diff) |
use 'w' for command wrapping as 'M' is already used
since 'M' is already used for sort-by-memory, as with:
keys['M'] = actionSortByMemory;
reorder help info about shortcut keys
-rw-r--r-- | Action.c | 4 | ||||
-rw-r--r-- | htop.1.in | 5 |
2 files changed, 5 insertions, 4 deletions
@@ -423,8 +423,8 @@ static const struct { const char* key; const char* info; } helpRight[] = { { .key = " e: ", .info = "show process environment" }, { .key = " i: ", .info = "set IO priority" }, { .key = " l: ", .info = "list open files with lsof" }, - { .key = " M: ", .info = "show process command in multiple lines" }, { .key = " s: ", .info = "trace syscalls with strace" }, + { .key = " w: ", .info = "wrap process command in multiple lines" }, { .key = " F2 C S: ", .info = "setup" }, { .key = " F1 h: ", .info = "show this help screen" }, { .key = " F10 q: ", .info = "quit" }, @@ -595,5 +595,5 @@ void Action_setBindings(Htop_Action* keys) { keys['U'] = actionUntagAll; keys['c'] = actionTagAllChildren; keys['e'] = actionShowEnvScreen; - keys['M'] = actionShowCommandScreen; + keys['w'] = actionShowCommandScreen; } @@ -119,8 +119,9 @@ update of system calls issued by the process. Display open files for a process: if lsof(1) is installed, pressing this key will display the list of file descriptors opened by the process. .TP -.B M -Display the command line of the highlighted process in multiple lines. +.B w +Display the command line of the selected process in a separate screen, wrapped +onto multiple lines as needed. .TP .B F1, h, ? Go to the help screen |