Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
adam.huang
htop
Commits
130938f6
Commit
130938f6
authored
Mar 23, 2006
by
Hisham Muhammad
Browse files
Fixes for header generation.
parent
0df3ea08
Changes
5
Hide whitespace changes
Inline
Side-by-side
CRT.c
View file @
130938f6
/*
/*
htop - CRT.c
htop - CRT.c
(C) 2004
,
200
5
Hisham H. Muhammad
(C) 2004
-
200
6
Hisham H. Muhammad
Released under the GNU GPL, see the COPYING file
Released under the GNU GPL, see the COPYING file
in the source distribution for its full text.
in the source distribution for its full text.
*/
*/
...
@@ -18,6 +18,13 @@ in the source distribution for its full text.
...
@@ -18,6 +18,13 @@ in the source distribution for its full text.
#define ColorPair(i,j) COLOR_PAIR((7-i)*8+j)
#define ColorPair(i,j) COLOR_PAIR((7-i)*8+j)
#define COLORSCHEME_DEFAULT 0
#define COLORSCHEME_MONOCHROME 1
#define COLORSCHEME_BLACKONWHITE 2
#define COLORSCHEME_BLACKONWHITE2 3
#define COLORSCHEME_MIDNIGHT 4
#define COLORSCHEME_BLACKNIGHT 5
#define Black COLOR_BLACK
#define Black COLOR_BLACK
#define Red COLOR_RED
#define Red COLOR_RED
#define Green COLOR_GREEN
#define Green COLOR_GREEN
...
@@ -93,6 +100,8 @@ extern int CRT_delay;
...
@@ -93,6 +100,8 @@ extern int CRT_delay;
extern int CRT_colors[LAST_COLORELEMENT];
extern int CRT_colors[LAST_COLORELEMENT];
extern int CRT_colorScheme;
}*/
}*/
// TODO: centralize these in Settings.
// TODO: centralize these in Settings.
...
...
ColorsListBox.c
View file @
130938f6
...
@@ -28,7 +28,7 @@ typedef struct ColorsListBox_ {
...
@@ -28,7 +28,7 @@ typedef struct ColorsListBox_ {
}*/
}*/
/* private
property
*/
/* private */
static
char
*
ColorSchemes
[]
=
{
static
char
*
ColorSchemes
[]
=
{
"Default"
,
"Default"
,
"Monochromatic"
,
"Monochromatic"
,
...
...
Meter.c
View file @
130938f6
/*
/*
htop - Meter.c
htop - Meter.c
(C) 2004
,
200
5
Hisham H. Muhammad
(C) 2004
-
200
6
Hisham H. Muhammad
Released under the GNU GPL, see the COPYING file
Released under the GNU GPL, see the COPYING file
in the source distribution for its full text.
in the source distribution for its full text.
*/
*/
...
@@ -66,6 +66,9 @@ extern char* METER_CLASS;
...
@@ -66,6 +66,9 @@ extern char* METER_CLASS;
#ifndef MIN
#ifndef MIN
#define MIN(a,b) ((a)<(b)?(a):(b))
#define MIN(a,b) ((a)<(b)?(a):(b))
#endif
#endif
#ifndef MAX
#define MAX(a,b) ((a)>(b)?(a):(b))
#endif
/* private property */
/* private property */
char
*
METER_CLASS
=
"Meter"
;
char
*
METER_CLASS
=
"Meter"
;
...
...
Process.c
View file @
130938f6
/*
/*
htop - Process.c
htop - Process.c
(C) 2004
,
200
5
Hisham H. Muhammad
(C) 2004
-
200
6
Hisham H. Muhammad
Released under the GNU GPL, see the COPYING file
Released under the GNU GPL, see the COPYING file
in the source distribution for its full text.
in the source distribution for its full text.
*/
*/
...
@@ -235,6 +235,7 @@ static void Process_printTTY(RichString* str, int tty_nr) {
...
@@ -235,6 +235,7 @@ static void Process_printTTY(RichString* str, int tty_nr) {
char
*
buffer
[
11
];
char
*
buffer
[
11
];
}
}
/* private */
inline
static
void
Process_writeCommand
(
Process
*
this
,
int
attr
,
RichString
*
str
)
{
inline
static
void
Process_writeCommand
(
Process
*
this
,
int
attr
,
RichString
*
str
)
{
if
(
this
->
pl
->
highlightBaseName
)
{
if
(
this
->
pl
->
highlightBaseName
)
{
char
*
firstSpace
=
strchr
(
this
->
comm
,
' '
);
char
*
firstSpace
=
strchr
(
this
->
comm
,
' '
);
...
...
TraceScreen.c
View file @
130938f6
/*
/*
htop - TraceScreen.c
htop - TraceScreen.c
(C) 2005 Hisham H. Muhammad
(C) 2005
-2006
Hisham H. Muhammad
Released under the GNU GPL, see the COPYING file
Released under the GNU GPL, see the COPYING file
in the source distribution for its full text.
in the source distribution for its full text.
*/
*/
...
@@ -16,6 +16,8 @@ in the source distribution for its full text.
...
@@ -16,6 +16,8 @@ in the source distribution for its full text.
#include "ProcessList.h"
#include "ProcessList.h"
#include "Process.h"
#include "Process.h"
#include "ListItem.h"
#include "ListItem.h"
#include "ListBox.h"
#include "FunctionBar.h"
/*{
/*{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment