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