summaryrefslogtreecommitdiffstats
path: root/htop.c
AgeCommit message (Collapse)Author
2020-12-02Set locale only once and do not override it laterChristian Göttsche
2020-11-28Hide process selection on ESCChristian Göttsche
Do not highlight the current process line after pressing ESC in the main screen. Restore after pressing any key.
2020-11-26Drop unneeded parameters to the ScreenManager constructorNathan Scott
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.
2020-11-25Add support to change numeric options in settings screenChristian Göttsche
Like delay or highlightDelaySecs
2020-11-24Move treeView setting to make status bar item correct when using --sort-key, ↵Daniel Lange
patch from @cgzones Closes #340
2020-11-23Merge branch 'cleanup-init-done' into masterNathan Scott
2020-11-19IWYU update (Linux)Christian Göttsche
2020-11-19Minor cleanups to platform-specific init and doneNathan Scott
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.
2020-11-18Align command line argument descriptions in help outputChristian Göttsche
Also drop #link comment
2020-11-17Use 0 as no-match value for sortkeyChristian Göttsche
Field numbers start at 1, and using -1 as no-match special value triggers static analyzers using a potential negative array access.
2020-11-16Show CPU temperature in CPU meterChristian Göttsche
Show the CPU temperature in the CPU meter, like CPU frequency, instead of using an extra Meter.
2020-11-16Merge branch 'hili-new-old' of adsr/htop into highlight-new-old-processesDaniel Lange
2020-11-02Embracing branchesBenny Baumann
2020-11-02Spacing around operatorsBenny Baumann
2020-11-02Spacing after keywords (if)Benny Baumann
2020-11-02Spacing after keywords (while)Benny Baumann
2020-10-31Address items from reviewAdam Saponara
2020-10-31Fix segmentation fault when column name is NULL.Erdem Ersoy
So, some columns (ex: SECATTR) can be sortable now.
2020-10-30Highlight new and old processes (#74)Adam Saponara
2020-10-20Merge branch 'Xalloc_Cleanup' of cgzones/htopDaniel Lange
2020-10-19XUtils string related updatesChristian Göttsche
- 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
2020-10-19Continue to update generic data in paused modeChristian Göttsche
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
2020-10-18Make all required includes explicitBenny Baumann
Information as seen by IWYU 0.12 + clang 9 on Linux
2020-10-16Rename StringUtils.[ch] to XUtils.[ch]Benny Baumann
2020-10-16Move xAsprintf, xSnprintf and xStrdup to StringUtils.hBenny Baumann
2020-10-16Misc conversion fixesChristian Göttsche
2020-10-12Add key to pause process list updatesChristian Göttsche
2020-10-07Option to set initial filterlaydervus
Closes #219
2020-10-05Add Copyright statement to --help (needed as it has the license info)Daniel Lange
2020-10-05Update License consistently to GPLv2 as per COPYING fileDaniel Lange
2020-10-03Add clang analyzer CI jobChristian Göttsche
2020-09-24Avoid warning about unreachable break statementChristian Göttsche
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; ^~~~~
2020-09-24Add DeepCode inline suppressionChristian Göttsche
We just want a non-NUll pointer in the matching pid hashtable. The pointer is not dereferenced anyways.
2020-09-18Mark noreturn functionsChristian Göttsche
2020-09-18Use strict function prototypesChristian Göttsche
int foo(); declares a function taking any number of arguments.
2020-09-18Sort option in help messageChristian Göttsche
2020-09-18Convert short version option to capital VChristian Göttsche
v is generally used for enabling verbose mode
2020-09-18Change option '-m' to '-M' for consistency of cliMichael F. Schönitzer
`-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.
2020-09-17Free movingBar memory on exitChristian Göttsche
2020-09-17Avoid modifying optargChristian Göttsche
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()`.
2020-09-09Switch variable/field naming from WhiteList to MatchListNathan Scott
2020-09-04Fix regression in -u optional-argument handlingNathan Scott
Resolves https://github.com/htop-dev/htop/issues/91
2020-09-01add option (-U, --no-unicode) to disable unicode at runtimeChristian Hesse
2020-08-31Merge branch 'configure' of https://github.com/cgzones/htop into ↵Nathan Scott
cgzones-configure
2020-08-31Simplify the --version output, old dates are confusing peopleNathan Scott
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.
2020-08-28Drop configure option --enable-procChristian Göttsche
Move to HTOP_LINUX, as --enable-proc implies my_htop_platform=linux, and the Linux features do not work without a proc fs.
2020-08-20Merge branch 'hishamhm-pull-1011'Nathan Scott
2020-08-20Merge branch 'hishamhm-pull-923'Nathan Scott
2020-08-20Merge branch 'hishamhm-pull-960'Nathan Scott
2020-08-20Merge branch 'hishamhm-pull-884'Nathan Scott