Skip to content

Commit

Permalink
Merge pull request #388 from mhinz/add-p-to-help
Browse files Browse the repository at this point in the history
Add "p" to Help
  • Loading branch information
hishamhm committed Mar 1, 2016
2 parents 4f1bd23 + 0a4a447 commit 63c5585
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Action.c
Original file line number Diff line number Diff line change
Expand Up @@ -387,6 +387,7 @@ static struct { const char* key; const char* info; } helpLeft[] = {
{ .key = " F3 /: ", .info = "incremental name search" },
{ .key = " F4 \\: ",.info = "incremental name filtering" },
{ .key = " F5 t: ", .info = "tree view" },
{ .key = " p: ", .info = "toggle program path" },
{ .key = " u: ", .info = "show processes of a single user" },
{ .key = " H: ", .info = "hide/show user process threads" },
{ .key = " K: ", .info = "hide/show kernel threads" },
Expand Down Expand Up @@ -479,8 +480,8 @@ static Htop_Reaction actionHelp(State* st) {
for (int i = 0; helpLeft[i].key; i++) { mvaddstr(9+i, 0, helpLeft[i].key); }
for (int i = 0; helpRight[i].key; i++) { mvaddstr(9+i, 40, helpRight[i].key); }
attrset(CRT_colors[PROCESS_THREAD]);
mvaddstr(15, 32, "threads");
mvaddstr(16, 26, "threads");
mvaddstr(16, 32, "threads");
mvaddstr(17, 26, "threads");
attrset(CRT_colors[DEFAULT_COLOR]);

attrset(CRT_colors[HELP_BOLD]);
Expand Down

0 comments on commit 63c5585

Please sign in to comment.