summaryrefslogtreecommitdiffstats
path: root/ScreenManager.c
Commit message (Collapse)AuthorAgeFilesLines
* Fix clearing the last line in setup on function bar change (thanks cgzones)Daniel Lange2021-01-111-1/+1
|
* Add option to hide the Function BarChristian Göttsche2021-01-041-1/+1
| | | | | | | | | | 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
* Panel: rework hight logicChristian Göttsche2021-01-041-1/+1
| | | | | | | The hight of a Panel dpends on whether the Panel has a header or not. Also the header migth not be set on Panel creation, like in the MainPanel. This currently causes the cursor to get hidden behind the FunctionBar on down-scrolling.
* Restore highlighted header of current sorted process columnChristian Göttsche2020-12-231-1/+1
|
* Rework drawing of FunctionBarChristian Göttsche2020-12-201-18/+14
| | | | | | | | | | | 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
* Fix pause mode ("Z") in tree viewDaniel Lange2020-12-091-1/+1
|
* Common order for ESC/q/F10Benny Baumann2020-12-031-2/+2
|
* Hide process selection on ESCChristian Göttsche2020-11-281-1/+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-34/+25
| | | | | | | | | | 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.
* Merge branch 'hili-new-old' of adsr/htop into highlight-new-old-processesDaniel Lange2020-11-161-0/+1
|\
| * Highlight new and old processes (#74)Adam Saponara2020-10-301-0/+1
| |
* | Embracing branchesBenny Baumann2020-11-021-15/+37
| |
* | Spacing around operatorsBenny Baumann2020-11-021-8/+8
|/
* 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-7/+8
| | | | Information as seen by IWYU 0.12 + clang 9 on Linux
* Add key to pause process list updatesChristian Göttsche2020-10-121-10/+16
|
* Update License consistently to GPLv2 as per COPYING fileDaniel Lange2020-10-051-1/+1
|
* Do not drop qualifier in castChristian Göttsche2020-09-241-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | ListItem.c:73:33: warning: cast from 'const void *' to 'struct ListItem_ *' drops const qualifier [-Wcast-qual] ListItem* obj1 = (ListItem*) cast1; ^ ListItem.c:74:33: warning: cast from 'const void *' to 'struct ListItem_ *' drops const qualifier [-Wcast-qual] ListItem* obj2 = (ListItem*) cast2; ^ Process.c:434:28: warning: cast from 'const void *' to 'struct Process_ *' drops const qualifier [-Wcast-qual] Process* p1 = (Process*)v1; ^ Process.c:435:28: warning: cast from 'const void *' to 'struct Process_ *' drops const qualifier [-Wcast-qual] Process* p2 = (Process*)v2; ^ Process.c:441:36: warning: cast from 'const void *' to 'struct Process_ *' drops const qualifier [-Wcast-qual] Settings *settings = ((Process*)v1)->settings; ^ Process.c:443:22: warning: cast from 'const void *' to 'struct Process_ *' drops const qualifier [-Wcast-qual] p1 = (Process*)v1; ^ Process.c:444:22: warning: cast from 'const void *' to 'struct Process_ *' drops const qualifier [-Wcast-qual] p2 = (Process*)v2; ^ Process.c:446:22: warning: cast from 'const void *' to 'struct Process_ *' drops const qualifier [-Wcast-qual] p2 = (Process*)v1; ^ Process.c:447:22: warning: cast from 'const void *' to 'struct Process_ *' drops const qualifier [-Wcast-qual] p1 = (Process*)v2; ^ AffinityPanel.c:37:16: warning: cast from 'const char *' to 'void *' drops const qualifier [-Wcast-qual] free((void*)this->text); ^ AffinityPanel.c:39:19: warning: cast from 'const char *' to 'void *' drops const qualifier [-Wcast-qual] free((void*)this->indent); ^ linux/LinuxProcess.c:294:36: warning: cast from 'const void *' to 'struct Process_ *' drops const qualifier [-Wcast-qual] Settings *settings = ((Process*)v1)->settings; ^ linux/LinuxProcess.c:296:27: warning: cast from 'const void *' to 'struct LinuxProcess_ *' drops const qualifier [-Wcast-qual] p1 = (LinuxProcess*)v1; ^ linux/LinuxProcess.c:297:27: warning: cast from 'const void *' to 'struct LinuxProcess_ *' drops const qualifier [-Wcast-qual] p2 = (LinuxProcess*)v2; ^ linux/LinuxProcess.c:299:27: warning: cast from 'const void *' to 'struct LinuxProcess_ *' drops const qualifier [-Wcast-qual] p2 = (LinuxProcess*)v1; ^ linux/LinuxProcess.c:300:27: warning: cast from 'const void *' to 'struct LinuxProcess_ *' drops const qualifier [-Wcast-qual] p1 = (LinuxProcess*)v2; ^ linux/LinuxProcessList.c:62:32: warning: cast from 'const void *' to 'struct TtyDriver_ *' drops const qualifier [-Wcast-qual] TtyDriver* a = (TtyDriver*) va; ^ linux/LinuxProcessList.c:63:32: warning: cast from 'const void *' to 'struct TtyDriver_ *' drops const qualifier [-Wcast-qual] TtyDriver* b = (TtyDriver*) vb; ^ linux/Battery.c:130:21: warning: cast from 'const char *' to 'char *' drops const qualifier [-Wcast-qual] free((char *) isOnline); ^ linux/Battery.c:197:26: warning: cast from 'const char *' to 'char *' drops const qualifier [-Wcast-qual] xSnprintf((char *) filePath, sizeof filePath, SYS_POWERSUPPLY_DIR "/%s/type", entryName); ^ linux/Battery.c:209:29: warning: cast from 'const char *' to 'char *' drops const qualifier [-Wcast-qual] xSnprintf((char *) filePath, sizeof filePath, SYS_POWERSUPPLY_DIR "/%s/uevent", entryName); ^ linux/Battery.c:262:29: warning: cast from 'const char *' to 'char *' drops const qualifier [-Wcast-qual] xSnprintf((char *) filePath, sizeof filePath, SYS_POWERSUPPLY_DIR "/%s/online", entryName); ^
* Revert the vim_mode setting for now, needs a rethinkNathan Scott2020-09-151-16/+0
| | | | | | | | | | | | | There have been too many bugs reported in vim_mode, and the proposed fixes are increasingly fragile - hence we have decided to back it out for now. For reference: https://github.com/htop-dev/htop/issues/69 https://github.com/htop-dev/htop/pull/37 https://github.com/htop-dev/htop/pull/106 The whitespace changes also arrived in commit 12805f61d not sure what that was about, but backed out as well.
* Axe automated header generation.Zev Weiss2020-09-031-27/+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-959'Nathan Scott2020-08-201-0/+16
|\
| * Add simple vim modeDaniel Flanagan2019-10-311-0/+17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This commit adds a "vim_mode" setting (false/`0` by default) that causes keys to be remapped in the following way by the `ScreenManager`: + h -> LEFT + j -> DOWN + k -> UP + l -> RIGHT + LEFT -> h (toggle help) + DOWN -> j (noop) + UP -> k (open kill menu) + RIGHT -> l (lsof current process) + K (Shift+K) -> k (open kill menu) + J (Shift+J) -> K (toggle show/hide kernel threads) + L (Shift+L) -> l (lsof current process) I couldn't figure out where the manpage documentation is in the repo, though I admittedly did not look particularly hard. I believe this change would be a welcome option for heavy vim users like myself who would like a familiar way to get around in htop.
* | Added an option to disable the mouse.MartinJM2019-07-121-4/+4
|/
* Remove duplicated if conditionAlan Barr2019-02-101-5/+3
| | | | | | The for loop already handles i being < nPanels Raised by cppcheck
* Added Ctrl+A and Ctrl+E to go to beginning and end of line.Hisham2016-06-151-2/+9
| | | | | (Also, '^' and '$') Closes #508.
* Use set_escdelay() to avoid problems with ESCDELAY as a macro.Hisham2016-05-191-1/+1
|
* Fix behavior of ESC key, getting rid of the annoying delay.Hisham2016-02-191-22/+6
| | | | | Thank you @Explorer09 for the push! Closes #417.
* Check for failure in allocations.Hisham2016-02-021-1/+1
|
* vi keys: translate ALT-h/j/k/l to arrow keysMichael Klein2016-01-121-0/+23
|
* Add expand/collapse on additional clicks!Hisham Muhammad2015-08-191-1/+5
|
* Support for NCurses 6.0 and mouse wheelHisham Muhammad2015-08-191-16/+25
|
* handle clicks on panel header lineHisham Muhammad2015-03-241-28/+34
|
* incremental search and filter reintegrated!Hisham Muhammad2015-03-231-5/+9
|
* Move FunctionBar inside PanelHisham Muhammad2015-03-231-21/+3
|
* Working on integration of IncSet in new branch.Hisham Muhammad2015-03-221-7/+5
|
* Refactor state control variables.Hisham Muhammad2015-03-221-46/+53
|
* Fix allocation of processes. Closes #166.Hisham Muhammad2015-02-201-12/+0
|
* Complete cursor-based movement of headers.Hisham Muhammad2015-02-031-1/+3
|
* Another mega-patch for the refactoring process.Hisham Muhammad2015-01-231-19/+35
| | | | | Kinda runs, but functionality from the original main loop is still missing. Patience.
* Sorry about the mega-patch.Hisham Muhammad2015-01-211-25/+80
| | | | | This is a work-in-progress, code is currently broken. (Some actions, and notably, the header, are missing.)
* Refactored key handlers.Hisham Muhammad2014-11-191-1/+1
| | | | | | Made the logic more modular, hopefully easier to follow, and removed repeated code. Plus, some optimization in RichString code.
* Don't end up killing init if process selected to be killed terminates before ↵Hisham Muhammad2013-02-261-1/+2
| | | | the user selects a signal. Closes #3606072.
* Changes in object model: separate class objects to store vtable. Also, nicer ↵Hisham Muhammad2012-12-051-4/+4
| | | | UTF-8 display of big numbers.
* search and filter for the strace and lsof screens!Hisham Muhammad2012-11-101-1/+1
|
* Remove old memory debugging routines. We have Valgrind nowadays.Hisham Muhammad2011-12-261-1/+0
|
* major header cleanupHisham Muhammad2011-12-261-6/+7
|
* Keep panel structure up-to-date as process list changes when headers are ↵Hisham Muhammad2011-12-011-28/+36
| | | | updated during the screen manager. Hopefully closes #3444533.
* Tempus fugit.Hisham Muhammad2011-05-261-1/+1
|
* * Option for counting CPUs from zeroHisham Muhammad2011-03-221-3/+18
| | | | | | (thanks to Sean Noonan) * Meters update in every screen (no longer halting while on Setup, etc.)
* * Add Bash/emacs style navigation keysHisham Muhammad2010-03-031-0/+2
| | | | | (thanks to Daniel Schuler)

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