mirror of https://github.com/xzeldon/htop.git
Make sure help screen is properly filled.
Make behavior of H key consistent.
This commit is contained in:
parent
4df76d127b
commit
52840406ac
7
htop.c
7
htop.c
|
@ -56,6 +56,10 @@ void printHelpFlag() {
|
||||||
void showHelp(ProcessList* pl) {
|
void showHelp(ProcessList* pl) {
|
||||||
clear();
|
clear();
|
||||||
attrset(CRT_colors[HELP_BOLD]);
|
attrset(CRT_colors[HELP_BOLD]);
|
||||||
|
|
||||||
|
for (int i = 0; i < LINES-1; i++)
|
||||||
|
mvhline(i, 0, ' ', COLS);
|
||||||
|
|
||||||
mvaddstr(0, 0, "htop " VERSION " - (C) 2004-2008 Hisham Muhammad.");
|
mvaddstr(0, 0, "htop " VERSION " - (C) 2004-2008 Hisham Muhammad.");
|
||||||
mvaddstr(1, 0, "Released under the GNU GPL. See 'man' page for more info.");
|
mvaddstr(1, 0, "Released under the GNU GPL. See 'man' page for more info.");
|
||||||
|
|
||||||
|
@ -705,7 +709,8 @@ int main(int argc, char** argv) {
|
||||||
break;
|
break;
|
||||||
case 'H':
|
case 'H':
|
||||||
refreshTimeout = 0;
|
refreshTimeout = 0;
|
||||||
pl->hideThreads = !pl->hideThreads;
|
pl->hideUserlandThreads = !pl->hideUserlandThreads;
|
||||||
|
pl->hideThreads = pl->hideUserlandThreads;
|
||||||
settings->changed = true;
|
settings->changed = true;
|
||||||
break;
|
break;
|
||||||
case 'K':
|
case 'K':
|
||||||
|
|
Loading…
Reference in New Issue