24
|
1 #ifndef __SCREEN_H__
|
|
2 #define __SCREEN_H__ 1
|
|
3
|
|
4 #include <ncurses.h>
|
|
5
|
|
6 #define COLOR_POPUP 1
|
|
7 #define COLOR_GENERAL 3
|
|
8 #define COLOR_BD_CONSEL 4
|
|
9 #define COLOR_BD_CON 5
|
|
10 #define COLOR_BD_DESSEL 6
|
|
11 #define COLOR_BD_DES 7
|
|
12
|
|
13 #define LOG_WIN_HEIGHT (5+2)
|
74
|
14 #define ROSTER_WIDTH 24
|
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);
|
|
22 void scr_DrawMainWindow(void);
|
|
23 void scr_TerminateCurses(void);
|
50
|
24 void scr_WriteIncomingMessage(const char *jidfrom, const char *text);
|
|
25 void scr_WriteOutgoingMessage(const char *jidto, const char *text);
|
24
|
26 void scr_RoolWindow(void);
|
|
27 void scr_ShowBuddyWindow(void);
|
|
28 void scr_LogPrint(const char *fmt, ...);
|
|
29
|
50
|
30 int scr_IsHiddenMessage(const char *jid);
|
24
|
31
|
|
32 WINDOW *scr_GetRosterWindow(void);
|
|
33 WINDOW *scr_GetStatusWindow(void);
|
|
34 WINDOW *scr_GetInputWindow(void);
|
|
35
|
|
36 int scr_Getch(void);
|
|
37
|
29
|
38 int process_key(int);
|
24
|
39
|
|
40 #endif
|