summaryrefslogtreecommitdiffstats
path: root/htop.c
Commit message (Collapse)AuthorAgeFilesLines
* Rework enum ProcessFieldChristian Göttsche2020-12-191-2/+2
| | | | | | Use only one enum instead of a global and a platform specific one. Drop Platform_numberOfFields global variable. Set known size of Process_fields array
* Separate tree and list sort ordersHisham Muhammad2020-12-191-3/+6
| | | | | | | | | | | | Implements the suggestion from https://github.com/htop-dev/htop/issues/399#issuecomment-747861013 Thanks to the refactors from 0bd5c8fb5da and 6393baa74e5, this was really easy and clean to do. It maintains the "Tree view always by PID" option in the Settings, which results in some specific behaviors such as "clicking on the column header to exit tree view" and "picking a new sort order to exit tree view", for the sake of the muscle memory of long time htop users. :)
* Set locale only once and do not override it laterChristian Göttsche2020-12-021-4/+3
|
* Hide process selection on ESCChristian Göttsche2020-11-281-0/+1
| | | | | | Do not highlight the current process line after pressing ESC in the main screen. Restore after pressing any key.
* Drop unneeded parameters to the ScreenManager constructorNathan Scott2020-11-261-1/+1
| | | | | | | | | | All calls to ScreenManager_new always pass the same first five values, the orientation is always HORIZONTAL and the y1 parameter is always the height of the passed-in header struct pointer. I think its safe to assert at this point that no VERTICAL orientation will arrive (if it does, its no harm in re-adding this then) - so we can remove unused conditionals (and TODOs) based on orientation too.
* Add support to change numeric options in settings screenChristian Göttsche2020-11-251-1/+1
| | | | Like delay or highlightDelaySecs
* Move treeView setting to make status bar item correct when using --sort-key, ↵Daniel Lange2020-11-241-5/+5
| | | | | | patch from @cgzones Closes #340
* Merge branch 'cleanup-init-done' into masterNathan Scott2020-11-231-44/+19
|\
| * Minor cleanups to platform-specific init and doneNathan Scott2020-11-191-44/+19
| | | | | | | | | | | | | | Move platform-specific code out of the htop.c main function and into the platform sub-directories - primarily this is the Linux procfs path check and sensors setup/teardown; not needed on any other platforms. No functional changes here.
* | IWYU update (Linux)Christian Göttsche2020-11-191-1/+0
|/
* Align command line argument descriptions in help outputChristian Göttsche2020-11-181-11/+10
| | | | Also drop #link comment
* Use 0 as no-match value for sortkeyChristian Göttsche2020-11-171-2/+2
| | | | | Field numbers start at 1, and using -1 as no-match special value triggers static analyzers using a potential negative array access.
* Show CPU temperature in CPU meterChristian Göttsche2020-11-161-0/+12
| | | | | Show the CPU temperature in the CPU meter, like CPU frequency, instead of using an extra Meter.
* Merge branch 'hili-new-old' of adsr/htop into highlight-new-old-processesDaniel Lange2020-11-161-10/+40
|\
| * Address items from reviewAdam Saponara2020-10-311-3/+4
| |
| * Highlight new and old processes (#74)Adam Saponara2020-10-301-24/+51
| |
* | Embracing branchesBenny Baumann2020-11-021-7/+12
| |
* | Spacing around operatorsBenny Baumann2020-11-021-5/+5
| |
* | Spacing after keywords (if)Benny Baumann2020-11-021-3/+3
| |
* | Spacing after keywords (while)Benny Baumann2020-11-021-2/+2
| |
* | Fix segmentation fault when column name is NULL.Erdem Ersoy2020-10-311-1/+9
|/ | | | So, some columns (ex: SECATTR) can be sortable now.
* Merge branch 'Xalloc_Cleanup' of cgzones/htopDaniel Lange2020-10-201-1/+1
|\
| * XUtils string related updatesChristian Göttsche2020-10-191-1/+1
| | | | | | | | | | | | | | | | | | | | - allow count out-parameter of String_split() to be NULL - introduce xStrndup() - do not allow NULL pointers passed to String_eq() it is not used in any code - implement String_startsWith(), String_contains_i() and String_eq() as inline header functions - adjust several conversion issues
* | Continue to update generic data in paused modeChristian Göttsche2020-10-191-2/+2
|/ | | | | | | | | Generic data, as CPU and memory usage, are used by Meters. In paused mode they would stop receiving updates and especially Graph Meters would stop showing continuous data. Improves: #214 Closes: #253
* Make all required includes explicitBenny Baumann2020-10-181-11/+19
| | | | Information as seen by IWYU 0.12 + clang 9 on Linux
* Rename StringUtils.[ch] to XUtils.[ch]Benny Baumann2020-10-161-1/+1
|
* Move xAsprintf, xSnprintf and xStrdup to StringUtils.hBenny Baumann2020-10-161-0/+1
|
* Misc conversion fixesChristian Göttsche2020-10-161-1/+1
|
* Add key to pause process list updatesChristian Göttsche2020-10-121-1/+2
|
* Option to set initial filterlaydervus2020-10-071-1/+32
| | | | Closes #219
* Add Copyright statement to --help (needed as it has the license info)Daniel Lange2020-10-051-0/+1
|
* Update License consistently to GPLv2 as per COPYING fileDaniel Lange2020-10-051-2/+2
|
* Add clang analyzer CI jobChristian Göttsche2020-10-031-0/+2
|
* Avoid warning about unreachable break statementChristian Göttsche2020-09-241-6/+2
| | | | | | | | | 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; ^~~~~
* Add DeepCode inline suppressionChristian Göttsche2020-09-241-0/+1
| | | | | We just want a non-NUll pointer in the matching pid hashtable. The pointer is not dereferenced anyways.
* Mark noreturn functionsChristian Göttsche2020-09-181-0/+2
|
* Use strict function prototypesChristian Göttsche2020-09-181-2/+2
| | | | int foo(); declares a function taking any number of arguments.
* Sort option in help messageChristian Göttsche2020-09-181-2/+2
|
* Convert short version option to capital VChristian Göttsche2020-09-181-4/+4
| | | | v is generally used for enabling verbose mode
* Change option '-m' to '-M' for consistency of cliMichael F. Schönitzer2020-09-181-4/+4
| | | | | | | | | `-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.
* Free movingBar memory on exitChristian Göttsche2020-09-171-0/+2
|
* Avoid modifying optargChristian Göttsche2020-09-171-8/+8
| | | | | | | 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()`.
* Switch variable/field naming from WhiteList to MatchListNathan Scott2020-09-091-8/+8
|
* Fix regression in -u optional-argument handlingNathan Scott2020-09-041-1/+1
| | | | Resolves https://github.com/htop-dev/htop/issues/91
* add option (-U, --no-unicode) to disable unicode at runtimeChristian Hesse2020-09-011-12/+19
|
* Merge branch 'configure' of https://github.com/cgzones/htop into ↵Nathan Scott2020-08-311-1/+1
|\ | | | | | | cgzones-configure
| * Drop configure option --enable-procChristian Göttsche2020-08-281-1/+1
| | | | | | | | | | Move to HTOP_LINUX, as --enable-proc implies my_htop_platform=linux, and the Linux features do not work without a proc fs.
* | Simplify the --version output, old dates are confusing peopleNathan Scott2020-08-311-4/+2
|/ | | | | | 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.
* Merge branch 'hishamhm-pull-1011'Nathan Scott2020-08-201-0/+3
|\
| * Let the user know about their errorJorge Pereira2020-06-111-0/+3
| | | | | | | | If the user informed wrong value, then let them know about that.

© 2014-2024 Faster IT GmbH | imprint | privacy policy