mayurdahibhate
1b74dfe187
cleaned up includes with iwyu
5 years ago
Christian Göttsche
d37d66bb3a
InfoScreen/ProcessList: do not access Vector internals
...
Use wrapper function to encapsulate the Vector structure
5 years ago
Øystein Hiåsen
d8d83031d9
InfoScreen: Remove old lines before scanning again
5 years ago
YJ Lee
34da6fdadb
Avoid syntax injection inside code block
...
Co-authored-by: BenBE <BenBE@geshi.org>
5 years ago
Youngjae Lee
3c61813ea6
InfoScreen: add mouse wheel scroll
5 years ago
Youngjae Lee
fd45845829
InfoScreen: fix mouse selection
5 years ago
V
bfcb8ca019
InfoScreen: fix uncontrolled format string
...
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.
5 years ago
Christian Göttsche
ce9e7fd14f
Panel_new: reorder arguments
...
Reorder owner and type so they match the order of Panel_init
5 years ago
Christian Göttsche
a3cced9fb6
Add option to hide the Function Bar
...
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
5 years ago
Christian Göttsche
e3862aa67e
Rework drawing of FunctionBar
...
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
5 years ago
Christian Göttsche
7e7a53c415
Mark event arrays const
5 years ago
Benny Baumann
c49ca61dd9
Common order for ESC/q/F10
5 years ago
Christian Göttsche
19b5141685
Hide process selection on ESC
...
Do not highlight the current process line after pressing ESC in the main
screen.
Restore after pressing any key.
5 years ago
Benny Baumann
45869513bf
Embracing branches
5 years ago
Benny Baumann
61e14d4bb2
Spacing around operators
5 years ago
Christian Göttsche
f8208f2173
Drop tabs in source indentions
5 years ago
Benny Baumann
0f5262917f
Make all required includes explicit
...
Information as seen by IWYU 0.12 + clang 9 on Linux
5 years ago
Benny Baumann
872e542f4e
Rename StringUtils.[ch] to XUtils.[ch]
5 years ago
Christian Göttsche
41eea8a355
Mark process argument of Process_isThread const
6 years ago
ryenus
ff455b0004
limit max screen title length to window width
...
Applies screen title truncating to all InfoScreen classes.
6 years ago
Christian Göttsche
8efc88593a
InfoScreen: update content on resize
6 years ago
Christian Göttsche
843949131a
Drop redundant casts to the same type
6 years ago
Zev Weiss
a1a027b9bd
Axe automated header generation.
...
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.
6 years ago
Christian Göttsche
df41979afc
Ignore wmove return value
...
Found by Coverity
6 years ago
Christian Göttsche
11f558f934
Avoid discarding const qualifiers
6 years ago
Nathan Scott
36ef4d4fb6
Resolve compilation warning relating to dangling else in InfoScreen_run
6 years ago
Jorge Pereira
8de04986cf
Fix misleading indentation
6 years ago
Daniel Flanagan
dd33444f7e
Clean up existing whitespace
6 years ago
wurongxin
a360a80d16
fix a bug about use of unitialised variable. refer to https://github.com/hishamhm/htop/issues/882
7 years ago
Hisham Muhammad
8c653212c0
Replace size_t with int/void* union
...
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
8 years ago
Richard
d5faf64374
Mark some things as const
...
Several string pointer arrays pointed to const strings
but were not const themselves.
A few various structures and arrays were also marked const.
9 years ago
Hisham
7f9c82f28d
Refresh whole panel on Ctrl+L in infoscreen.
...
Closes #520 .
10 years ago
Hisham
645057d81a
Use set_escdelay() to avoid problems with ESCDELAY as a macro.
10 years ago
Hisham
c23d4f12d1
Fix behavior of ESC key, getting rid of the annoying delay.
...
Thank you @Explorer09 for the push!
Closes #417 .
10 years ago
Hisham Muhammad
466d4da0c6
refactor *Screen classes, add InfoScreen superclass
10 years ago