24
|
1 #ifndef __SCREEN_H__ |
|
2 #define __SCREEN_H__ 1 |
|
3 |
|
4 #include <ncurses.h> |
173
|
5 #include <glib.h> |
24
|
6 |
139
|
7 //#define COLOR_NMSG 1 |
24
|
8 #define COLOR_GENERAL 3 |
139
|
9 //#define COLOR_BD_CON 4 |
|
10 #define COLOR_NMSG 5 |
24
|
11 #define COLOR_BD_DESSEL 6 |
|
12 #define COLOR_BD_DES 7 |
|
13 |
|
14 #define LOG_WIN_HEIGHT (5+2) |
74
|
15 #define ROSTER_WIDTH 24 |
185
|
16 #define PREFIX_WIDTH 17 |
24
|
17 #define CHAT_WIN_HEIGHT (maxY-1-LOG_WIN_HEIGHT) |
|
18 |
|
19 #define INPUTLINE_LENGTH 1024 |
|
20 |
30
|
21 extern int update_roster; |
24
|
22 |
|
23 void scr_InitCurses(void); |
151
|
24 void scr_DrawMainWindow(unsigned int fullinit); |
81
|
25 void scr_DrawRoster(void); |
24
|
26 void scr_TerminateCurses(void); |
184
|
27 void scr_WriteIncomingMessage(const char *jidfrom, const char *text, |
190
|
28 time_t timestamp, guint prefix); |
50
|
29 void scr_WriteOutgoingMessage(const char *jidto, const char *text); |
24
|
30 void scr_ShowBuddyWindow(void); |
|
31 void scr_LogPrint(const char *fmt, ...); |
129
|
32 inline void scr_set_chatmode(int enable); |
238
|
33 inline void scr_set_multimode(int enable); |
|
34 inline int scr_get_multimode(); |
|
35 void scr_append_multiline(const char *line); |
|
36 inline const char *scr_get_multiline(); |
24
|
37 |
|
38 WINDOW *scr_GetInputWindow(void); |
|
39 |
|
40 int scr_Getch(void); |
|
41 |
29
|
42 int process_key(int); |
24
|
43 |
104
|
44 // For commands... |
108
|
45 void scr_RosterTop(void); |
|
46 void scr_RosterBottom(void); |
265
|
47 void scr_RosterSearch(char *); |
187
|
48 void scr_BufferTop(void); |
|
49 void scr_BufferBottom(void); |
108
|
50 void scr_Clear(void); |
236
|
51 void scr_RosterUnreadMessage(int); |
104
|
52 |
24
|
53 #endif |