summaryrefslogtreecommitdiffstats
path: root/InfoScreen.c
Commit message (Collapse)AuthorAgeFilesLines
* netbsd: Support curses libraries without ncurses mouse supportnia2021-07-151-0/+2
| | | | | | | | | | | | This adds a configure check for the ncurses getmouse() function and disables mouse-related code paths when mouse support is not present in the curses library. This is necessary for stable versions of NetBSD's libcurses, the development version has stub mouse functions for compatibility with ncurses. Signed-off-by: Nia Alarie <nia@NetBSD.org>
* Check for set_escdelay in ncursesBenny Baumann2021-07-041-0/+2
|
* cleaned up includes with iwyumayurdahibhate2021-05-101-1/+0
|
* InfoScreen/ProcessList: do not access Vector internalsChristian Göttsche2021-03-121-1/+1
| | | | Use wrapper function to encapsulate the Vector structure
* InfoScreen: Remove old lines before scanning againØystein Hiåsen2021-02-151-2/+6
|
* Avoid syntax injection inside code blockYJ Lee2021-01-281-2/+3
| | | Co-authored-by: BenBE <BenBE@geshi.org>
* InfoScreen: add mouse wheel scrollYoungjae Lee2021-01-281-5/+13
|
* InfoScreen: fix mouse selectionYoungjae Lee2021-01-281-1/+1
|
* InfoScreen: fix uncontrolled format stringV2021-01-081-1/+1
| | | | | | mvwprintw takes a format string as its fourth argument, and title is user-controlled. This results in e.g. crashing when trying to trace a process with a format specifier in its command line.
* Panel_new: reorder argumentsChristian Göttsche2021-01-041-1/+1
| | | | Reorder owner and type so they match the order of Panel_init
* Add option to hide the Function BarChristian Göttsche2021-01-041-2/+2
| | | | | | | | | | 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
* Rework drawing of FunctionBarChristian Göttsche2020-12-201-7/+8
| | | | | | | | | | | 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
* Mark event arrays constChristian Göttsche2020-12-201-1/+1
|
* Common order for ESC/q/F10Benny Baumann2020-12-031-1/+1
|
* Hide process selection on ESCChristian Göttsche2020-11-281-2/+2
| | | | | | Do not highlight the current process line after pressing ESC in the main screen. Restore after pressing any key.
* Embracing branchesBenny Baumann2020-11-021-3/+8
|
* Spacing around operatorsBenny Baumann2020-11-021-7/+10
|
* Drop tabs in source indentionsChristian Göttsche2020-10-201-1/+1
|
* Make all required includes explicitBenny Baumann2020-10-181-8/+9
| | | | Information as seen by IWYU 0.12 + clang 9 on Linux
* Rename StringUtils.[ch] to XUtils.[ch]Benny Baumann2020-10-161-1/+1
|
* Mark process argument of Process_isThread constChristian Göttsche2020-10-091-1/+1
|
* limit max screen title length to window widthryenus2020-10-051-2/+9
| | | | Applies screen title truncating to all InfoScreen classes.
* InfoScreen: update content on resizeChristian Göttsche2020-10-021-0/+1
|
* Drop redundant casts to the same typeChristian Göttsche2020-09-291-1/+1
|
* Axe automated header generation.Zev Weiss2020-09-031-36/+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.
* Ignore wmove return valueChristian Göttsche2020-08-281-1/+1
| | | | Found by Coverity
* Avoid discarding const qualifiersChristian Göttsche2020-08-251-2/+2
|
* Merge branch 'hishamhm-pull-1010'Nathan Scott2020-08-201-1/+2
|\
| * Fix misleading indentationJorge Pereira2020-06-111-2/+5
| |
* | Merge branch 'hishamhm-pull-960'Nathan Scott2020-08-201-2/+2
|\ \
| * | Clean up existing whitespaceDaniel Flanagan2019-10-311-2/+2
| |/
* | Resolve compilation warning relating to dangling else in InfoScreen_runNathan Scott2020-08-191-1/+2
| |
* | fix a bug about use of unitialised variable. refer to ↵wurongxin2019-01-291-1/+1
|/ | | | https://github.com/hishamhm/htop/issues/882
* Replace size_t with int/void* unionHisham Muhammad2018-02-181-2/+3
| | | | | | | | 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-2/+2
| | | | | | | Several string pointer arrays pointed to const strings but were not const themselves. A few various structures and arrays were also marked const.
* Refresh whole panel on Ctrl+L in infoscreen.Hisham2016-06-231-0/+1
| | | | Closes #520.
* 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-0/+1
| | | | | Thank you @Explorer09 for the push! Closes #417.
* refactor *Screen classes, add InfoScreen superclassHisham Muhammad2016-01-121-0/+180

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