Make sure help screen is properly filled.

Make behavior of H key consistent.
This commit is contained in:
Hisham Muhammad 2008-03-08 23:30:35 +00:00
parent 4df76d127b
commit 52840406ac
1 changed files with 6 additions and 1 deletions

7
htop.c
View File

@ -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':