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);
|
24
|
33
|
|
34 WINDOW *scr_GetInputWindow(void);
|
|
35
|
|
36 int scr_Getch(void);
|
|
37
|
29
|
38 int process_key(int);
|
24
|
39
|
104
|
40 // For commands...
|
108
|
41 void scr_RosterTop(void);
|
|
42 void scr_RosterBottom(void);
|
187
|
43 void scr_BufferTop(void);
|
|
44 void scr_BufferBottom(void);
|
108
|
45 void scr_Clear(void);
|
104
|
46
|
24
|
47 #endif
|