Commit 52840406 authored by Hisham Muhammad's avatar Hisham Muhammad
Browse files

Make sure help screen is properly filled.

Make behavior of H key consistent.
parent 4df76d12
...@@ -56,6 +56,10 @@ void printHelpFlag() { ...@@ -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) { ...@@ -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':
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment