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
3f3213b2
Commit
3f3213b2
authored
13 years ago
by
Hisham Muhammad
Browse files
Options
Download
Email Patches
Plain Diff
show cursor when function bar allows typing an entry.
parent
60e51060
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
CRT.c
+2
-0
CRT.c
CRT.h
+2
-0
CRT.h
FunctionBar.c
+5
-1
FunctionBar.c
with
9 additions
and
1 deletion
+9
-1
CRT.c
View file @
3f3213b2
...
...
@@ -118,6 +118,8 @@ int CRT_colorScheme = 0;
int
CRT_colors
[
LAST_COLORELEMENT
]
=
{
0
};
int
CRT_cursorX
=
0
;
char
*
CRT_termType
;
void
*
backtraceArray
[
128
];
...
...
This diff is collapsed.
Click to expand it.
CRT.h
View file @
3f3213b2
...
...
@@ -119,6 +119,8 @@ extern int CRT_colorScheme;
extern
int
CRT_colors
[
LAST_COLORELEMENT
];
extern
int
CRT_cursorX
;
char
*
CRT_termType
;
void
*
backtraceArray
[
128
];
...
...
This diff is collapsed.
Click to expand it.
FunctionBar.c
View file @
3f3213b2
...
...
@@ -111,9 +111,13 @@ void FunctionBar_drawAttr(const FunctionBar* this, char* buffer, int attr) {
mvaddstr
(
LINES
-
1
,
x
,
this
->
functions
[
i
]);
x
+=
strlen
(
this
->
functions
[
i
]);
}
if
(
buffer
!=
NULL
)
{
if
(
buffer
)
{
attrset
(
attr
);
mvaddstr
(
LINES
-
1
,
x
,
buffer
);
CRT_cursorX
=
x
+
strlen
(
buffer
);
curs_set
(
1
);
}
else
{
curs_set
(
0
);
}
attrset
(
CRT_colors
[
RESET_COLOR
]);
}
...
...
This diff is collapsed.
Click to expand it.
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