summaryrefslogtreecommitdiffstats
path: root/MainPanel.c
AgeCommit message (Collapse)Author
2021-01-11Mark several non-modified pointer variables constChristian Göttsche
2021-01-06Avoid function cast by refactoring callback prototypeChristian Göttsche
2021-01-04IncSet: do not resize on our own and do not search on resizeChristian Göttsche
The supervising ScreenManager will resize all Panels. Also do not start the search on resize.
2021-01-04Add option to hide the Function BarChristian Göttsche
Support three settings: - Always show Function Bar - Always hide the Function Bar, except in Infoscreens (Env/Locks...) and when editing the search and filter mode - Hide the Function Bar on ESC until the next user input Closes: #439
2020-12-23Restore highlighted header of current sorted process columnChristian Göttsche
2020-12-20Rework drawing of FunctionBarChristian Göttsche
Draw the FunctionBar within Panel_draw instead of manually throughout the code. Add an optional PanelClass function drawFunctionBar, to allow specific panels to override the default FunctionBar_draw call. Rework the code on color change, to really change all colors (selection markers and panel headers). Closes: #402
2020-12-19Separate tree and list sort ordersHisham Muhammad
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. :)
2020-12-19Add "Tree view is always sorted by PID" option to mimic htop 2 behaviorHisham Muhammad
2020-12-16MainPanel: use actual KEY_RESIZE instead of KEY_SHUFFLEChristian Göttsche
KEY_RESIZE (0632) is equal to KEY_SHUFFLE (0x19a)
2020-12-15MainPanel: do not reset hideProcessSelection on KEY_SHUFFLEChristian Göttsche
KEY_SHUFFLE might get send from time to time, e.g. in a tmux session.
2020-12-02Minor code streamliningBenny Baumann
2020-12-02Implement sorting in tree modeMaxim Zhiburt
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-24Improving Command display/sortNarendran Gopalakrishnan
2020-11-15Mark ProcessList_keyAt argument constChristian Göttsche
2020-11-02Embracing branchesBenny Baumann
2020-11-02Spacing around operatorsBenny Baumann
2020-10-18Make all required includes explicitBenny Baumann
Information as seen by IWYU 0.12 + clang 9 on Linux
2020-10-12Add key to pause process list updatesChristian Göttsche
2020-10-12Compress size of default FunctionBarChristian Göttsche
2020-10-07Mark Object instances constChristian Göttsche
2020-10-05Update License consistently to GPLv2 as per COPYING fileDaniel Lange
2020-09-17Call character checking function with unsigned charChristian Göttsche
See https://wiki.sei.cmu.edu/confluence/display/c/STR37-C.+Arguments+to+character-handling+functions+must+be+representable+as+an+unsigned+char
2020-09-03Axe automated header generation.Zev Weiss
Reasoning: - implementation was unsound -- broke down when I added a fairly basic macro definition expanding to a struct initializer in a *.c file. - made it way too easy (e.g. via otherwise totally innocuous git commands) to end up with timestamps such that it always ran MakeHeader.py but never used its output, leading to overbuild noise when running what should be a null 'make'. - but mostly: it's just an awkward way of dealing with C code.
2020-08-20Merge branch 'hishamhm-pull-949'Nathan Scott
2020-08-20Merge branch 'hishamhm-pull-960'Nathan Scott
2020-08-20Resolve compiler warnings and errors relating to the Arg unionNathan Scott
Promote the Arg union to a core data type in Object.c such that it is visible everywhere (many source files need it), and correct declarations of several functions that use it. The Process_sendSignal function is also corrected to have the expected return type (bool, not void) - an error being masked by ignoring this not-quite-harmless warning. I've also added error checking to the kill(2) call here, which was previously overlooked / missing (?).
2019-10-31Clean up existing whitespaceDaniel Flanagan
2019-09-12MainPanel: add seventh char to main functionsduchampdev
reason: currently, for example 'search' and 'filter' look very densely packed
2018-02-18Replace size_t with int/void* unionHisham Muhammad
I was occasionally passing negative values to size_t. Plus, this better reflects the intent of the variant argument. Reported by Coverity: https://scan8.coverity.com/reports.htm#v13253/p10402/fileInstanceId=22093891&defectInstanceId=7543346&mergedDefectId=174179&fileStart=251&fileEnd=500
2017-07-22Mark some things as constRichard
Several string pointer arrays pointed to const strings but were not const themselves. A few various structures and arrays were also marked const.
2016-07-28'Follow' only if element is found in searchHisham
2016-06-15Added Ctrl+A and Ctrl+E to go to beginning and end of line.Hisham
(Also, '^' and '$') Closes #508.
2016-05-25Make sure a pointer fits in the argument!Hisham
2016-05-05Auto-follow process after a search.Hisham
See #237.
2016-02-02Check for failure in allocations.Hisham
2016-01-03Check range when accessing keys table.Hisham Muhammad
Should fix #321.
2015-08-20Extra checks.Hisham Muhammad
2015-04-09update bar when clicking header.Hisham Muhammad
2015-04-09Visual tweaks: change color when following, add Broken Gray theme.Hisham Muhammad
2015-04-08Keep following status when no key is pressed.Hisham Muhammad
2015-03-24handle clicks on panel header lineHisham Muhammad
2015-03-23incremental search and filter reintegrated!Hisham Muhammad
2015-03-23Move FunctionBar inside PanelHisham Muhammad
2015-03-22Working on integration of IncSet in new branch.Hisham Muhammad
2015-03-22Refactor state control variables.Hisham Muhammad
2015-03-15Add MainPanel.cHisham Muhammad