-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathDisplay.h
48 lines (41 loc) · 1.29 KB
/
Display.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
#ifndef Display_h_
#define Display_h_
typedef struct {
char line[64];
}line_t;
typedef struct {
uint8_t valid;
int x, y, w, h;
char label[80];
char inputBuffer[128];
char keyBoardInput[80];
line_t lines[64];
int label_color;
int inputShift;
PANEL *panel;
}PANEL_DATA;
void initDisplay(int number);
int updateDisplay(int number);
void win_show(WINDOW *win, PANEL_DATA *POA, int number);
void print_in_middle(WINDOW *win, int starty, int startx, int width, char *string, chtype color);
void thing(int sig);
void destroy_win(WINDOW *local_win);
void middleShow(WINDOW *win, char *label, int label_color);
void addMonitor(const char *label, int color);
void refreshMonitors();
void resizeMonitors();
void initMonitors();
void clearMemory();
void append(char* s, char c, int maxLen);
void printShifter(WINDOW *win, char *str, int y, int x, int shift, int len);
void printScreen (int monitorNumber);
void clearLinesa(int monitorNumber);
void writeLine(int monitorNumber, char *line, int lineNumber);
void *thread(void *vargp);
void shiftLines(line_t *lines);
int displayActive();
void endDisplay();
void appendString(char *original, char *add, int length);
void addLine(int monitorNumber, char *line);
char *readInput(int monitorNumber);
#endif