summaryrefslogtreecommitdiffstats
path: root/CRT.c
AgeCommit message (Collapse)Author
2021-02-17Remove setuid supportBenny Baumann
This support was rarely ever used and has been disabled by default for some time. As far as the developer team is aware there's no distribution that activated this feature in their packages by default.
2021-02-05Cache stderr to be able to print assert messagesChristian Göttsche
2021-02-01Remove unused key definitionsDaniel Lange
2021-02-01Fix Shift+Function key on Qt-based terminalsBenBE
Fixes #508.
2021-01-29Do not call exit(3) in signal handlerChristian Göttsche
Call safe _exit(2) instead
2021-01-27Pass Settings to CRT_initChristian Göttsche
Resolve todo
2021-01-19Linux: individual huge page values in the huge page meterDavid Zarzycki
2021-01-11Linux: Add SwapCached to the swap meterDavid Zarzycki
According to the Linux kernel documentation, "SwapCached" tracks "memory that once was swapped out, is swapped back in but still also is in the swapfile (if memory is needed it doesn't need to be swapped out AGAIN because it is already in the swapfile. This saves I/O)."
2021-01-11Fix white text in the Light Terminal colour schemeV
2021-01-08Merge branch 'light_color' of cgzones/htopDaniel Lange
2021-01-08Refactor crash handler message to avoid embedded directiveChristian Göttsche
CRT.c:821:2: error: embedding a directive within macro arguments has undefined behavior [-Werror,-Wembedded-directive] #ifdef HAVE_EXECINFO_H ^ CRT.c:823:2: error: embedding a directive within macro arguments has undefined behavior [-Werror,-Wembedded-directive] #endif ^ CRT.c:858:2: error: embedding a directive within macro arguments has undefined behavior [-Werror,-Wembedded-directive] #ifdef HTOP_DARWIN ^ CRT.c:862:2: error: embedding a directive within macro arguments has undefined behavior [-Werror,-Wembedded-directive] #endif ^ CRT.c:864:2: error: embedding a directive within macro arguments has undefined behavior [-Werror,-Wembedded-directive] #ifdef HTOP_DARWIN ^ CRT.c:868:2: error: embedding a directive within macro arguments has undefined behavior [-Werror,-Wembedded-directive] #endif ^
2021-01-08Revert color change on LightTerminalChristian Göttsche
Partially revert 4b14ab9789eee004daab8594ac00a113c18af060 ColorPair(Black,Black) is not actually black on black, but due to adjustments in CRT_setColors() black on default-background-color. Thanks to V for reporting.
2021-01-07Show arrow indicating order of sorted process columnChristian Göttsche
2020-12-26CRT: add METER_VALUE_ERROR and adjust some METER_VALUE_WARN colorsChristian Göttsche
2020-12-25Enable going back to previous search matches (Shift-F3)Daniel Lange
2020-12-14Misc CRT cleanupChristian Göttsche
2020-12-10Cull the definitions of pageSize and pageSizeKB from CRT.cNathan Scott
By storing the per-process m_resident and m_virt values in the form htop wants to display them in (KB, not pages), we no longer need to have definitions of pageSize and pageSizeKB in the common CRT code. These variables were never really CRT (i.e. display) related in the first place. It turns out the darwin platform code doesn't need to use these at all (the process values are extracted from the kernel in bytes not pages) and the other platforms can each use their own local pagesize variables, in more appropriate locations. Some platforms were actually already doing this, so this change is removing duplication of logic and variables there.
2020-12-06IWYU updateChristian Göttsche
2020-12-05Hide degree character without wide ncurses supportChristian Göttsche
2020-12-05Resolve conversion from int to shortChristian Göttsche
2020-12-02Set locale only once and do not override it laterChristian Göttsche
2020-12-02Compare indices not index with pairChristian Göttsche
Fixes always true condition. Found by LGTM.com
2020-12-02Use enum element name instead of magic numberChristian Göttsche
2020-11-25Add support to change numeric options in settings screenChristian Göttsche
Like delay or highlightDelaySecs
2020-11-24Improving Command display/sortNarendran Gopalakrishnan
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-16Fix whitespace before comma in the new color definitionsDaniel Lange
2020-11-16Merge branch 'hili-new-old' of adsr/htop into highlight-new-old-processesDaniel Lange
2020-11-15Fixup of SystemdMeter mergeChristian Göttsche
2020-11-15Resolve merge conflicts, merge #229 "Add SystemdMeter" from @cgzonesDaniel Lange
2020-11-02Embracing branchesBenny Baumann
2020-11-02Spacing around operatorsBenny Baumann
2020-11-02Spacing after keywords (if)Benny Baumann
2020-10-31Add SystemdMeterChristian Göttsche
2020-10-31Zram Meter featureMurloc Knight
2020-10-30Highlight new and old processes (#74)Adam Saponara
2020-10-26Improve handling of no data in Disk and Network IO MetersChristian Göttsche
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-19Cache PAGE_SIZEChristian Göttsche
man:sysconf(3) states: The values obtained from these functions are system configuration constants. They do not change during the lifetime of a process.
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-16Generalize Meter value colors for IOChristian Göttsche
2020-10-14Misc CRT cleanupChristian Göttsche
2020-10-12Centralise fault handlingBenny Baumann
This should be done as all platforms essentially did the same anyway and there was nothing platform specific.
2020-10-12Add key to pause process list updatesChristian Göttsche
2020-10-06Merge branch 'update-license-and-copyright-info'Nathan Scott
2020-10-05Add a date and datetime meter (#159)Michael F. Schönitzer
Add a date meter and sort header and source files in Makefile Change the lists of header and source files sorted alphabetical and one file per line. This way diffs become better readable and merges easier.
2020-10-05Update License consistently to GPLv2 as per COPYING fileDaniel Lange
2020-10-03Resolve DEBUG compilation issuesChristian Göttsche
Use NDEBUG conditional instead of DEBUG. Do not call static functions in extern inline ones. Vector.c:67:11: error: static function 'Vector_isConsistent' is used in an inline function with external linkage [-Werror,-Wstatic-in-inline]