mirror of
https://github.com/xzeldon/htop.git
synced 2024-12-23 22:55:46 +00:00
show cursor when function bar allows typing an entry.
This commit is contained in:
parent
60e5106098
commit
3f3213b2e2
2
CRT.c
2
CRT.c
@ -118,6 +118,8 @@ int CRT_colorScheme = 0;
|
||||
|
||||
int CRT_colors[LAST_COLORELEMENT] = { 0 };
|
||||
|
||||
int CRT_cursorX = 0;
|
||||
|
||||
char* CRT_termType;
|
||||
|
||||
void *backtraceArray[128];
|
||||
|
2
CRT.h
2
CRT.h
@ -119,6 +119,8 @@ extern int CRT_colorScheme;
|
||||
|
||||
extern int CRT_colors[LAST_COLORELEMENT];
|
||||
|
||||
extern int CRT_cursorX;
|
||||
|
||||
char* CRT_termType;
|
||||
|
||||
void *backtraceArray[128];
|
||||
|
@ -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]);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user