summaryrefslogtreecommitdiffstats
path: root/MainPanel.c
Commit message (Collapse)AuthorAgeFilesLines
* Update license headers to explicitly say GPLv2+Daniel Lange2021-09-221-1/+1
|
* MainPanel: do not reset on disabled mouse eventsChristian Göttsche2021-09-181-2/+2
| | | | Do not reset the hidden process selection (and hidden function bar) on mouse events, when mouse support is disabled.
* Abstract resize handling by adding a new Htop reactionChristian Göttsche2021-08-221-0/+3
|
* Make MainPanel_pidSearch a static functionChristian Göttsche2021-04-211-1/+1
| | | | Not used elsewhere.
* Add read-only optionChristian Göttsche2021-04-141-2/+3
| | | | | Add command line option to disable all system and process changing features.
* Mark several non-modified pointer variables constChristian Göttsche2021-01-111-2/+2
|
* Avoid function cast by refactoring callback prototypeChristian Göttsche2021-01-061-6/+6
|
* IncSet: do not resize on our own and do not search on resizeChristian Göttsche2021-01-041-1/+5
| | | | | The supervising ScreenManager will resize all Panels. Also do not start the search on resize.
* Add option to hide the Function BarChristian Göttsche2021-01-041-1/+7
| | | | | | | | | | 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
* Restore highlighted header of current sorted process columnChristian Göttsche2020-12-231-2/+8
|
* Rework drawing of FunctionBarChristian Göttsche2020-12-201-7/+12
| | | | | | | | | | | 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
* Separate tree and list sort ordersHisham Muhammad2020-12-191-4/+5
| | | | | | | | | | | | 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. :)
* Add "Tree view is always sorted by PID" option to mimic htop 2 behaviorHisham Muhammad2020-12-191-1/+4
|
* MainPanel: use actual KEY_RESIZE instead of KEY_SHUFFLEChristian Göttsche2020-12-161-1/+1
| | | | KEY_RESIZE (0632) is equal to KEY_SHUFFLE (0x19a)
* MainPanel: do not reset hideProcessSelection on KEY_SHUFFLEChristian Göttsche2020-12-151-1/+1
| | | | KEY_SHUFFLE might get send from time to time, e.g. in a tmux session.
* Minor code streamliningBenny Baumann2020-12-021-5/+1
|
* Implement sorting in tree modeMaxim Zhiburt2020-12-021-3/+0
|
* Hide process selection on ESCChristian Göttsche2020-11-281-0/+4
| | | | | | Do not highlight the current process line after pressing ESC in the main screen. Restore after pressing any key.
* Improving Command display/sortNarendran Gopalakrishnan2020-11-241-1/+1
|
* Mark ProcessList_keyAt argument constChristian Göttsche2020-11-151-1/+1
|
* Embracing branchesBenny Baumann2020-11-021-4/+5
|
* Spacing around operatorsBenny Baumann2020-11-021-2/+4
|
* Make all required includes explicitBenny Baumann2020-10-181-3/+11
| | | | Information as seen by IWYU 0.12 + clang 9 on Linux
* Add key to pause process list updatesChristian Göttsche2020-10-121-0/+2
|
* Compress size of default FunctionBarChristian Göttsche2020-10-121-1/+1
|
* Mark Object instances constChristian Göttsche2020-10-071-1/+1
|
* Update License consistently to GPLv2 as per COPYING fileDaniel Lange2020-10-051-1/+1
|
* Call character checking function with unsigned charChristian Göttsche2020-09-171-1/+1
| | | | See https://wiki.sei.cmu.edu/confluence/display/c/STR37-C.+Arguments+to+character-handling+functions+must+be+representable+as+an+unsigned+char
* Axe automated header generation.Zev Weiss2020-09-031-19/+0
| | | | | | | | | | | | | | 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.
* Merge branch 'hishamhm-pull-949'Nathan Scott2020-08-201-1/+1
|\
| * MainPanel: add seventh char to main functionsduchampdev2019-09-121-1/+1
| | | | | | | | reason: currently, for example 'search' and 'filter' look very densely packed
* | Merge branch 'hishamhm-pull-960'Nathan Scott2020-08-201-3/+3
|\ \
| * | Clean up existing whitespaceDaniel Flanagan2019-10-311-3/+3
| |/
* / Resolve compiler warnings and errors relating to the Arg unionNathan Scott2020-08-201-5/+1
|/ | | | | | | | | | | | 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 (?).
* Replace size_t with int/void* unionHisham Muhammad2018-02-181-2/+7
| | | | | | | | 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
* Mark some things as constRichard2017-07-221-1/+1
| | | | | | | Several string pointer arrays pointed to const strings but were not const themselves. A few various structures and arrays were also marked const.
* 'Follow' only if element is found in searchHisham2016-07-281-4/+4
|
* Added Ctrl+A and Ctrl+E to go to beginning and end of line.Hisham2016-06-151-14/+0
| | | | | (Also, '^' and '$') Closes #508.
* Make sure a pointer fits in the argument!Hisham2016-05-251-1/+1
|
* Auto-follow process after a search.Hisham2016-05-051-0/+3
| | | | See #237.
* Check for failure in allocations.Hisham2016-02-021-1/+1
|
* Check range when accessing keys table.Hisham Muhammad2016-01-031-1/+1
| | | | Should fix #321.
* Extra checks.Hisham Muhammad2015-08-201-1/+1
|
* update bar when clicking header.Hisham Muhammad2015-04-091-1/+1
|
* Visual tweaks: change color when following, add Broken Gray theme.Hisham Muhammad2015-04-091-0/+1
|
* Keep following status when no key is pressed.Hisham Muhammad2015-04-081-0/+2
|
* handle clicks on panel header lineHisham Muhammad2015-03-241-1/+15
|
* incremental search and filter reintegrated!Hisham Muhammad2015-03-231-13/+15
|
* Move FunctionBar inside PanelHisham Muhammad2015-03-231-10/+12
|
* Working on integration of IncSet in new branch.Hisham Muhammad2015-03-221-2/+11
|

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