summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHisham Muhammad <hisham@gobolinux.org>2008-03-08 23:30:35 +0000
committerHisham Muhammad <hisham@gobolinux.org>2008-03-08 23:30:35 +0000
commit52840406ac85943d47ed9311be8db86eedc1ea7a (patch)
treef4f8ac5e406b878eac2978cc9cfef5e6b075b769
parent4df76d127b9cf830a15244da75976efb43752c6b (diff)
Make sure help screen is properly filled.
Make behavior of H key consistent.
-rw-r--r--htop.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/htop.c b/htop.c
index eda5079a..ec5d79e3 100644
--- a/htop.c
+++ b/htop.c
@@ -56,6 +56,10 @@ void printHelpFlag() {
void showHelp(ProcessList* pl) {
clear();
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(1, 0, "Released under the GNU GPL. See 'man' page for more info.");
@@ -705,7 +709,8 @@ int main(int argc, char** argv) {
break;
case 'H':
refreshTimeout = 0;
- pl->hideThreads = !pl->hideThreads;
+ pl->hideUserlandThreads = !pl->hideUserlandThreads;
+ pl->hideThreads = pl->hideUserlandThreads;
settings->changed = true;
break;
case 'K':