Christian Göttsche
6a03cd237a
Avoid warning about unreachable break statement
...
htop.c:112:13: warning: 'break' will never be executed [-Wunreachable-code-break]
break;
^~~~~
htop.c:109:13: warning: 'break' will never be executed [-Wunreachable-code-break]
break;
^~~~~
6 years ago
Christian Göttsche
f4e1f4619f
Add DeepCode inline suppression
...
We just want a non-NUll pointer in the matching pid hashtable.
The pointer is not dereferenced anyways.
6 years ago
Christian Göttsche
e719a85994
Mark noreturn functions
6 years ago
Christian Göttsche
c3952e7c20
Use strict function prototypes
...
int foo(); declares a function taking any number of arguments.
6 years ago
Christian Göttsche
dd6500c7c7
Sort option in help message
6 years ago
Christian Göttsche
f6b0efded5
Convert short version option to capital V
...
v is generally used for enabling verbose mode
6 years ago
Michael F. Schönitzer
1061bd719a
Change option '-m' to '-M' for consistency of cli
...
`-m` was added as short option for `--no-mouse`, this is inconsistence
to the rest of the cli since otherwise the short options to disable a
feature are capital letters. Therefore this commit renames the option to
`-M`.
This commit also documents the option in the man page.
6 years ago
Christian Göttsche
71c068ad28
Free movingBar memory on exit
6 years ago
Christian Göttsche
1f5bd5c4c8
Avoid modifying optarg
...
It might be working, but lets rather not modify getopt's global variable
`optarg`.
Also there is no need to call `getenv("USER")`, just use `geteuid()`.
6 years ago
Nathan Scott
4597332959
Switch variable/field naming from WhiteList to MatchList
6 years ago
Nathan Scott
0750ff7e76
Fix regression in -u optional-argument handling
...
Resolves https://github.com/htop-dev/htop/issues/91
6 years ago
Christian Hesse
db5adbeae0
add option (-U, --no-unicode) to disable unicode at runtime
6 years ago
Nathan Scott
0a835e13bf
Simplify the --version output, old dates are confusing people
...
Drop the copyright notice from the version output as a number
of people seem to be confused by what this means, and we can
do without all the (well intentioned) bug reports.
6 years ago
Christian Göttsche
5bee902665
Drop configure option --enable-proc
...
Move to HTOP_LINUX, as --enable-proc implies my_htop_platform=linux, and
the Linux features do not work without a proc fs.
6 years ago
Jorge Pereira
832e77c754
Let the user know about their error
...
If the user informed wrong value, then let them know about that.
6 years ago
Daniel Flanagan
dd33444f7e
Clean up existing whitespace
6 years ago
MartinJM
b0e24cd5a5
Added an option to disable the mouse.
7 years ago
Lion Yang
dc7d035238
htop.c: remove unused "--io" / "-i" ( #811 )
...
Introduced from 3383d8e556 (2.0.0) but never used.
7 years ago
solanav
7c62db73fc
User option "-u" now defaults to $USER
7 years ago
Lion Yang
67e368914a
htop.c: remove unused "--io" / "-i" ( #811 )
...
Introduced from 3383d8e556 (2.0.0) but never used.
8 years ago
Christian Hesse
08a9b051c5
fix option string
...
This broke with commit db05ba6106 .
8 years ago
Daniel Flanagan
db05ba6106
Add -t command-line flag for tree view
8 years ago
Hisham
565101234a
Remove old commented code.
10 years ago
Hisham
d4741d5410
Fix error test — looks like nobody bumped into this one!
10 years ago
Hisham
b54d2dde40
Check for failure in allocations.
10 years ago
Christian Hesse
9ca646acbb
align help output
10 years ago
Hisham Muhammad
fbb4c49edd
gcc warning cleanups.
11 years ago
Michael McConville
ad1a0ad08d
Replace some remaining tabs
11 years ago
Michael McConville
571cbc0aa1
Change more fprintf(stderr, ...); exit(...); to err[x](...). Tweak a few existing ones and fix some style.
11 years ago
Michael McConville
a9a5a539cf
(Very) initial working OpenBSD port
11 years ago
Christian Hesse
77df258636
remove duplicate code
11 years ago
Hisham Muhammad
4c24a9b462
Fixes to subclassing Process.
11 years ago
Hisham Muhammad
54f8d8154b
Do not trust isalpha(c) for values > 255.
...
Fixes #174 .
Conflicts:
Panel.c
11 years ago
Hisham Muhammad
d0c72c3fb2
Move FunctionBar inside Panel
11 years ago
Hisham Muhammad
442a0d33e4
Do not trust isalpha(c) for values > 255.
...
Fixes #174 .
11 years ago
Hisham Muhammad
1084a3ff8f
Working on integration of IncSet in new branch.
11 years ago
Hisham Muhammad
1e0c530a46
Tempus fugit.
11 years ago
Hisham Muhammad
e3fe3962cb
Move more Linux-specific code into Linux subdir.
11 years ago
Hisham Muhammad
c2108e5a48
Another mega-patch for the refactoring process.
...
Kinda runs, but functionality from the original main loop
is still missing. Patience.
11 years ago
Hisham Muhammad
3383d8e556
Sorry about the mega-patch.
...
This is a work-in-progress, code is currently broken.
(Some actions, and notably, the header, are missing.)
11 years ago
Hisham Muhammad
b4f6b11092
Move "get max pid" code into platform specific area.
11 years ago
Hisham Muhammad
a89758094f
check /proc only if using /proc
11 years ago
Hisham Muhammad
aaaaf063a1
Builds on Linux again!
11 years ago
Hisham Muhammad
eb229d9aef
Changes for supporting separate platform subdirectories.
11 years ago
Hisham Muhammad
9faf4938b8
Refactored key handlers.
...
Made the logic more modular, hopefully easier to follow,
and removed repeated code.
Plus, some optimization in RichString code.
11 years ago
Hisham Muhammad
eb196f8ba4
Get two data points for meters.
...
Ensure one mini-reading-cycle runs before getting the UI active
so we have two data points to get better meter measurements from
the get-go.
12 years ago
Hisham Muhammad
b7de9bd0f5
Don't stop refreshing if clock was adjusted.
12 years ago
Hisham Muhammad
7f92c58916
Avoid weird behavior when exiting help pressing keys such as F2.
12 years ago
Hisham Muhammad
88c3758051
Now, when you disable a filter (F4 → Esc), it will go back to unfiltered mode
...
but the current process will remain selected (so you can filter, choose and
then go back to unfiltered mode to see the children of that process).
Inspired by feedback at http://www.reddit.com/r/linux/comments/23wpc7/announcing_htop_103_with_new_features_bugfixes/ch1paos
12 years ago
Hisham Muhammad
100bd10b1d
Make blue text more readable. Closes #55 .
12 years ago